Uploaded image files not displayed correctly

Hello everyone,
I used the following article(on o'reilly) as reference for file upload:
http://www.onjava.com/pub/a/onjava/2001/04/05/upload.html?page=1
While it works fine for most files types, there are problems with image files.(I am using PrintStream, BufferedOutputStream,FileOutputStream to write the files on the server).
When links to these image files are clicked, the uploaded gif and jpeg image files are not displayed correctly.When directly opening the files on the server, it gives a 'error opening file' message.But other word docs , text files do not give an error.
If anyone else has come across the same problem and could help out , I would appreciate it.
Thanks in advance.

I do not want to enter into the logic which you are following to upload the file. I did the upload process successfully even as a blob datatype.
For this I followed the logic given in http://www.java.isavvix.com/codeexchange/codeexchange-viewdetail.jsp?id=22.
Here you can download the complete sourse code, which is working fine for gif and jpeg, I tested.
Please go with this. Also let me know, if you still have problem.
Regards.

Similar Messages

  • Slideshow images will not display correctly on mobile phone

    Hello,
    I have a website which I used several slideshows, in areas I would typically just used a rectangle and fill with photo.  This was done because my client wants to be able to update the images through business catalyst.  Unfortunately, when viewed on a mobile phone (I am using iOS 7) the slide show images do not display correctly.
    What can be done to fix this?  Is there another workaround I should try?
    Thanks!

    Hi Nicole
    The images that you are using on parties page are stretched , if you check the image frame you can see that.
    As a result the image frame is stretched over the side image , they are not showing properly. If you resize from Muse end , then also it would not be fixed because Muse remembers the image size as you have inserted and when viewed , Muse stretches the image to original size as how it was inserted.
    Please resize the images outside Muse , use any image editor like Photoshop and then use the exact dimension of the image frame on page.
    This would resolve the issue.
    Thanks,
    Sanjit

  • Colors in pdf files not displayed correctly on linux acroread

    I have recently observed that the colors in certain pdf files are not displayed correctly in acroread on Linux. Other readers such as evince get it right. Examples are a presentation with white arrows on  a black background which come out as black on black. I suspect, but have not proved, that the files were produced on Mac OS. I see this in acroread version 9.5.1 on a couple of versions of Linux. I googled this but could find no-one else mentioning it. Has anyone else seen it. Looks like a serious bug to me.

    Does this happen with other PDFs on the server? You might check out the Adobe forums.
    Regards, Tim

  • I have created a powerpoint web app in sharepoint 2013 ,i used a ppt in this web app.My ppt image is not displaying correctly in MAC mozilla firefox

    I am facing this problem in MAC OS Mozilla Firefox.It is displaying correctly in other browsers like google chrome and internet explorer in MAC OS,but it is not displaying correctly in Mozilla firefox.
    I already checked the possible reasons like:
    1. Restarted my computer
    2. Clear cookies and cache
    3. Restarted Firefox in Safe Mode
    4. Troubleshoot all plugins
    5. Reinstalled Firefox
    6. Reset Firefox.
    anyone know how to fix this issue.I am waiting for your valuable answers.

    Looking at [http://sharepoint.stackexchange.com/questions/82591/in-powerpoint-web-app-2013-ppt-is-not-displayed-correctly-in-mac-os-mozilla-fire your screen shot] it reminds me of a problem with Flash on the Retina display not using the full area if hardware acceleration of graphics is disabled. See [https://support.mozilla.org/en-US/questions/968863 I'm only getting one quarter of a screen on Flash Player on Firefox] (unsolved).
    Not sure if that's relevant but does the display of the slide change if you make sure that hardware acceleration is enabled? The checkbox is here:
    Firefox menu > Prefences > Advanced
    On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"
    Note that any changes take effect after you exit and restart Firefox.
    To see whether Firefox actually is using hardware acceleration, you can check the troubleshooting information. Either:
    * Help > Troubleshooting Information
    * type or paste about:support in the address bar and press Enter
    Toward the end, in the Graphics section, look for this row:
    GPU Accelerated Windows
    The number will show a ratio of accelerated to non-accelerated window. If hardware acceleration is disabled, the first number will always be zero.
    By the way, is the SharePoint PPT viewer using Flash, or Silverlight, or another plugin? Typically Firefox will display an icon that looks a bit like a "Lego" block in the address bar showing what plugins are in use in the page.

  • Raw images do not display correctly in Yosemite

    Since installing Yosemite onto My MacBookPro I find some of the images in my RAW library no longer display correctly in Bridge and Photoshop. I am running Bridge 5.0.2.4 and Photoshop 13.0.6 x 64. These same images display correctly in other image viewing software e.g. Digital Photo Professional, Image Browser and Yosemite Finder.

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • PDF/A files not displaying correctly on iPad

    Hi there
    I am creating a PDF/A document that is a compilation of a bunch of MS Word and PDF documents, which will be primarily viewed on iPad. I'm using DocsCorp pdfDocs on my computer (a PC) to compile them together, and saving as PDF/A to ensure no font problems. However, it's still not displaying properly on the iPad. Some of the pages are missing blocks of text and images. Some of the lines of text just look like black lines across the page, and there are some pages that have big black patches where text used to be.
    Does anyone know what else I can do to make my PDF/A document display correctly on an iPad?
    Thanks!

    You could try out an iBook.
    Creating iBooks (EPUBs)
    There’s no denying that the Apple iPad is a popular and successful product. One of the things I was most intrigued by was the format that Apple chose for their eBooks (iBooks). The good news is that they went with the industry standard EPUB format, and the even better news is that InDesign exports EPUBs natively. I created my first iBook for iPad using InDesign CS5. Let’s take a look at the workflow.
    https://blogs.adobe.com/indesignpost/2010/11/creating-ibooks-epubs-2/
    A mac solution.
    https://www.apple.com/ibooks-author/

  • PDF files not displaying correctly

    I have adobe reader 8 and my operating system is Vista. Every time I try to view a PDF file my screen gets messed up. My color quality goes from Highest 32 bit color to the lowest setting. I then either have to reboot my system, or go into my NVIDIA display properties and reset to to highest 32 bit color quality. my resolution is 1440x900. Why are my PDFS not displaying , and my color quality keep going to lowest, every time i use PDF?? .I

    When I try to initiate Adobe Reader 8.1 in vista the window opens then immediately closes. Also when I try to open any PDF file the system locks up and I have to close whatever program is running from Task Manager. I have uninstalled old versions and reinstalled Adboe Reader three times with no error messages and no problems. I'm the system administrator so this should not be an issue. Help!!
    Thanks!

  • Desktop Image does not display correctly when centered

    Have been doing a fair amount of Macro photography in high resolution lately. I often take the best close-up images and put them on my second monitor which is a Cinema Display. As the photos I take are 20MP when I select the images and center them, I *am* looking to in effect 'zoom in' and have the image displayed large.
    This works just dandy in Snow Leopard, apparently not so well - if at all - in Mavericks.
    What is the limiting issue here that an image no longer displays under the 'Centered' setting if that puts the edges of the frame beyond the display's edges? This is what I am talking about. You can see from the first three grabs, the desktop photo changes with each setting but stops in it's tracks with the last.
    http://home.comcast.net/~foodandart/MacForums/01-FitToScreen.jpg
    http://home.comcast.net/~foodandart/MacForums/02-StretchToFitScreen.jpg
    http://home.comcast.net/~foodandart/MacForums/03-FullScreen.jpg
    http://home.comcast.net/~foodandart/MacForums/04-Center.jpg
    That last photo would be stunning on my desktop if it was actually displaying as it shows in the Desktop Preference control panel.
    Any ideas?
    Deb.

    Hi Paul
    You're more likely to get an answer to this if you post in the UNIX forum.
    By the looks of it, you may have a problem with your fonts.

  • Image movie not displaying correctly

    Hi All
    I am trying to make a slideshow in Imovie that I will then attach in IDVD. When I import the images and play them they appear to zoom in and out with some images cutting off heads etc, how can I just display the image then move to the next without any special effects?

    I believe your Ken burns effect is on. Uncheck and apply to all frames.
    Hope this fixes it for you.
    Jen

  • I have created a powerpoint web app in sharepoint 2013 ,i used a ppt in this web app.My ppt image is not displaying correctly in mozilla firefox

    I also had same problem with MAC and Windows ,but it is solved by using silverlight plugin..Now i have to solve it for android devices.Any one please let me know that , is silverlight plugin for firefox on android is availabale or not?

    Hello neelam.mourya,
    Thank you for contacting Mozilla Support. Unfortunately there are no Silverlight plugins available for Android.
    I'm sorry that we don't have happier news for you, but I hope this answers your question.
    Cheers,
    Patrick

  • Images do not display in Acmevideo sample application WebApp_8i.jws

    Hello,
    The JDeveloper 3 Acmevideo web application for Oracle8i is a nice-looking web application.
    There is a syntax fault in the Java source files WebAppReports.java, WebApp.java of the JDeveloper 3 workspace WebApp_8i.jws
    In the file acmevideo_deploy.properties I used something like this:
    ...imageURL=http://oashost:80/acmeimages/...
    All occurrences of "/topmovie.gif", "/onoracle.gif","/filmsquare.gif" in the java source files WebAppReports.java, WebApp.java should be replaced by "topmovie.gif","onoracle.gif","filmsquare.gif". Otherwise these images will not display correctly in the web application.
    I would like to know when Oracle will provide a tutorial on servlet deployment of the acmevideo web application to Oracle Application Server.
    I understand that by providng a Java Webserver servlet deployment example the JDeveloper customer is not dependent on Oracle Application Server as web server.
    How to deploy the acmevideo servlet to Oracle Application Server 4.0.8.1?
    Thank you in advance for your reaction,
    Erik Martens
    null

    Hi Erik,
    For our next release, we are actually removing the Acme Video sample application. It will be replaced with the Web Auctions demo, which was used at the most recent Oracle Open World conference.
    Instructions for deploying DBServlets to OAS 4.0.8.1 are included in the JDeveloper 3.0 release notes.
    Laura
    null

  • Screen not displayed correctly using InteractiveViewer

    I have created a report that prompts the User for Start and End dates.  When the Prompt dialogue box is displayed using interactiveViewer the images are not displayed correctly.
    Does anybody have a fix for this problem ??
    Example attached.
    Ron Smith
    DBA

    My guess is that the toolbars don't show up when you view the reports either.
    There should be a virtual directory called 'crystalreportviewers' on your webserver. This is where you will find all the images supplied by the viewer.
    Right click on the image that is having problems and select properties.  This should give you location of the viewer.
    You should be able to trouble shoot this way be comparing the actual path with the real path of the missing images.
    Hopefully this will help.
    <a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/robhorne</a>

  • JPG images not displayed correctly in Bridge and Photoshop (Mac OS)

    (Note: I have copied the content of this query from the Creative Suites forum where I originally opened it.)
    I am using CS4 under OSX 10.4.11 on a PowerMac G5 Quad with 23" Apple cinema display. Images which have been captured as JPG are displayed fine by Preview, but when opened in Bridge, Camera Raw or Photoshop. the colours are all "washed out". The attached screen capture should give an idea of the difference, with the upper being Camera Raw (image settings) and the lower being Preview. My monitor has been calibrated and I'm using sRGB IEC61966-2.1 colour space in Camera Raw and Photoshop. The colours displayed by Preview are pretty close to "real life". I find it virtually impossible to adjust the colours in Photoshop to get back to anything similar.
    After opening the image in Photoshop without adjustment, and Save As JPEG with embedded color profile, Preview displays the new image the same as Photoshop. Save As JPEG without embedded color profile, and Preview displays this copy just like the original. It seems that Photoshop is making different (incorrect) assumptions about what color space to use when there is no embedded color profile. Shouldn't it assume sRGB like virtually everything else (http://en.wikipedia.org/wiki/SRGB)? Or is its interpretation of sRGB incorrect? How can I fix this?
    Re: JPG images not displayed correctly in Bridge and Photoshop 

    xxxxyyyyz wrote:
    …If there is someone out there who has experience of obtaining decent colour management in CS4 on a Power PC, I would really like to know how you achieved it.
    That would be yours truly, and I hasten to reply because I may have some insights that can help you too.
    Just get it it out of the way, here's my setup:
    Photoshop 11.0.2 ("CS4"); VersionCue disabled and uninstalled.—2.5 GHz Power Mac (PPC) G5-Quad; 16GB RAM; mutant, flashed 550MHz nVidia GeForce 7800GTX 1,700MHz 512MB VRAM; ATTO ExpressPCI UL5D LP SCSI card; Mac OS X Tiger 10.4.11 and Leopard 10.5.8 boot drives; Spotblight, Dashboard and Time Machine permanently disabled; dual 22" CRT monitors; USB wireless 'n' available but connected to the Internet via wired Ethernet; 1 FW flatbed scanner; 2 SCSI scanners (one tabloid-size transparency scanner and a film scanner); various internal & external HDs; FW Epson 2200 and Ethernet Samsung ML-2850ND printers; 2 X Back-UPS RS 1500 XS units.
    I can unambiguously and in good faith represent to you that my color management, from capture to print, is as spot-on as anyone with any kind of setup can hope to achieve.  Unequivocally and without qualifications.
    Now, first things first:  Forget about trying to synchronize color management across the point applications lumped together only by Adobe marketing fiat into a variety of meaningless "creative suites".  Concentrate on Photoshop.  Do not try to use Bridge to synchronize anything.
    The "suites" are a totally artificial construct created by Adobe bean counters and marketing types.  The point applications (i.e. the individual programs clumsily bundled together, e.g. Photoshop, Illustrator, InDesign, etc.) are developed independently by separate engineering teams that are not only not in the same building, but in different cities, different states of the American Union, and even in different countries.  They have very little communication among them, if any, as evidenced by repeated posts in these forums by Photoshop engineering staff urging us, the end users, to let the other teams know in their own forums that a given problem exists and is actually affecting our work.
    Enough said about the cause of the problem.  The end result is that Color Management is at very, very different levels of progress and sophistication in each individual point application, with only Photoshop fully entitled to be considered state of the art.
    Secondly, a disclaimer:  I have been hanging on to my CRT monitors and take care of them as Jascha Heifetz used to take care of his Stradivarius.  I don't know what I will do if I manage to outlive the usefulness and accuracy of my CRTs (unlikely at this point).  I have despaired in futile efforts to bring the luminosity of any LCD monitor down to where I would feel comfortable calibrating and profiling it.  I believe my monitors are the foundation of my color management efforts.
    Especially if you have one of the extreme wide-gamut LCD or LED monitors, you'll face an uphill battle. 
    Be careful to avoid any version 4 icc profiles, whether canned or generated by your calibration software.  Stick to version2 icc profiles.  Ask the manufacturer of your calibration software/hardware if in doubt.
    Here are some not-too-recent, but thoroughly representative screen shots of the calibration results I obtain with my monitors, which I calibrate and profile often and regularly (I validate the calibration at least several times per month).
    In a nutshell, my color management practices and settings mirror those described by Bruce Fraser, Jeff Schewe, Andrew Rodney and Gary Ballard's site.  I have learned from all of them.
    My working color space is ProPhoto RGB.  I choose to work with PSD and PSB files.  As a long-time, rabid JPEG hater, I only rarely deal with JPEGs, using them sporadically to illustrate a point in this forum or elsewhere in the web.  My main output consists of prints.
    I only deal with tagged image files (files with an embedded color profile) and often recommend beating up with a baseball bat any moron that hands you an untagged file—figuratively of course, but I find the expression gets my point across unambiguously.
    Following is a screen shot of some of my pertinent settings:
    Note that I have never bought into the "suite" concept myself.  I do have and routinely use Adobe Illustrator 10.x, InDesign 2.x and Acrobat Professional 8.x, but they are all older, independent versions of each point application, licensed at different times.
    Be further advised, that the answer to many problems offered by Adobe engineers often is not to install VersionCue, or uninstall it, or at least disable it.
    Also, as outlined at the beginning of this post, concentrate on Photoshop, not on synchronizing applications that can't really communicate with each other, despite the claims of Adobe marketing hacks to the contrary.
    One big caveat, do not fall into this trap:
    xxxxyyyyz wrote:
    …I believe my problem has nothing to do with my monitor profile, for several reasons, but…
    …It seems extremely unlikely to me that…
    You either want to learn, or you don't.  You either want to solve your problems, or you don't.
    When you start arguing instead of studying, questioning advice instead of following it and detecting where you went wrong, you're on the right track to nowhere.  That attitude will get you there fast.  Remember you are the one with the problem, and only you can acquire the discipline to learn how to solve it.
    Go ahead and ask me anything that is not clear, just don't argue with me please, and don't tell me why you think Fraser, Rodney, Ballard and I are wrong.  You see, I am not experiencing any problem that needs fixing.  I have an interest in helping you, but not in hearing about your speculations, theories or conclusions.
    Good luck.
    Wo Tai Lao Le
    我太老了

  • Images inside pop-ups not displaying correctly

    I am generating a CHM using RoboHelp 10. I have certain pop-ups in some topics. These pop-ups contain screen shots. After generating the CHM, when I click the pop-ups to view the screen shots, they are not displayed correctly. That is, half of the image does not appear and there are no horizontal scroll bars either to scroll. This happens for pop-ups that are appear on the left side of a topic.The images inside pop-ups that appear to the right side of a topic appear fine when clicked.

    Hi Rick,
    Thank you for the response. Alas, updating the DHTML effects doesn't help. In the project that am working, I have used hyperlinks that are marked to be displayed as auto-sizing pop-ups.
    I also tried editing the eHlpDhtm.js file as mentioned in the thread here, https://forums.adobe.com/thread/1297423#expires_in=86399993&token_type=bearer&access_token =eyJhbGciOiJSUzI1NiIsIng1dSI6I…. But that was of no avail either.
    Do you have any other insights here?
    Regards,
    Anamika
    P.S. Am using RH 10.0.1.292.

  • Images inside pop-ups in CHM not displaying correctly

    I am generating a CHM using RoboHelp 10 on a Windows XP machine.
    I have a few pop-ups in some topics. These pop-ups contain screen shots. After generating the CHM, when I click the pop-ups to view the screen shots, they are not displayed correctly. That is, half of the image does not appear and there are no horizontal scroll bars either to scroll. This happens for pop-ups that appear on the left side of a topic. The images inside pop-ups that appear to the right side of a topic appear fine when clicked.
    The help file was originally created using RH 7. I upgraded the source files to RH 10 successfully and there were no errors during the upgradation.
    I even tried generating the CHM on other systems with RH10 and the same system configuration as mine but ended up with the same results. I assume there is some compatibility issue maybe between RH 7 and RH10.
    Looking forward to any helpful insights here as this is pretty urgent at the moment for me to resolve the aforementioned issue at the earliest.

    Hi Rick,
    Thank you for the response. Alas, updating the DHTML effects doesn't help. In the project that am working, I have used hyperlinks that are marked to be displayed as auto-sizing pop-ups.
    I also tried editing the eHlpDhtm.js file as mentioned in the thread here, https://forums.adobe.com/thread/1297423#expires_in=86399993&token_type=bearer&access_token =eyJhbGciOiJSUzI1NiIsIng1dSI6I…. But that was of no avail either.
    Do you have any other insights here?
    Regards,
    Anamika
    P.S. Am using RH 10.0.1.292.

Maybe you are looking for

  • Sharepoint 2013 Online - error while setting up CRM integration

    Hi, we use Dynamics CRM 2011 on-premise and Sharepoint 2013 online and since last week CRM integration with Sharepoint stopped working. When I want to set up "Document Management Settings" in CRM administration I got an error "An error occured while

  • How to delete photos in photoshop cc?

    I cannot delete an image in photoshop cc. Whenever I try to delete a photo, the following words appear "The operation cannot be completed because you do not have sufficient permission." How do I overcome this problem?

  • Apple Juice in My MacBook Pro 13 (Waterdamage) HELP!!!

    I have wait now 35 hours and Then i make my Mac on and NOTHING! I do the chareing kabel on and no light ! :( What yet? Help Pls Bin Deutsch deutsche Antworten wären cool

  • Authorization for user in ECC while creating source system in RSA1 in BW

    Hello All.. We are trying to create source system from BW(7.0) system using transaction code rsa1 to R/3 Production server. After providing details in RSA1->Source system ; Remote logon screen of Production server pops up ...and ask to login thru adm

  • Attch a PDF to an email

    The email message I want to sent witha PDF attchment will only put the attchment at the end of the e-mail message. How do I change this to send as windows friendly which is grayed out