Image will not change on the Browser...Saving on the Tomcat Problem...HELP

Hi,
I worte a Servlet project using JBuilder 7 and TOmcat 4. THis is basically what i am doing...
I am getting an image from database and saving it to a folder in tomcat and then displaying it on a browser.
This application is used by multiple users...
I am saving the Image in Tom-cat...C:\JBuilder7\jakarta-tomcat-4.0.3\webapps\examples\Image1.jpeg
I am also displaying the image from that folder. The problem is when i run the application,
I am seeing the same Image on the screen..Its creating the different Image file, but the image is the same.
If i do a refresh on the page then it displays the new saved Image...
Also, If i save the image on my local and then display it from my local it changes the images as I
click on a Image list...
Following is how it works when i save it and display it from my local, but if i run my application from
another computer i am not able to see any of the images....Because its on my local.
     fos = new FileOutputStream("C:/Image1.jpeg");
     <img src="file:///C|/Image1.jpeg" height="855" name="myimage" align="middle" style="position:absolute;">;
And this is how i am doing when i am saving to the tomcat....I am able to display it on another computer
but would not change the image...
fos = new FileOutputStream("../webapps/examples/Image1.jpeg");
<img src="../Image1.jpeg" height="855" name="myimage" align="middle" style="position:absolute;">;
Can some one please tell me what could be the Problem....
Any help will be greatly appreciated....Thanks...

The browser caches images so that it doesn't have to always download the same image for different pages.
You could:
1: Save the new image with a different name and dynamically change the name in the html.
2: Try setting the response headers to prevent the browser from caching the images.
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);

Similar Messages

  • IPhoto images will not appear in Media browser

    After updating my iLife apps (iLife '09), iPhoto images no longer appear in my media browser. In iMovie, it just says "Loading iPhoto Images", but never does. I am using a Macbook with OS X 10.5.8 and 2 GB memory. Images will not appear in iDVD either. Anyone have any thoughts?

    Do you still have the old library? Rebuilding it with iPhoto Library Manager would preserve most of your work.
    This will creates a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

  • Window size will not change in open browser window behaviours

    Despite changing the sizes of the window in the edit function of
    edit open browser window it always opens up as one big page.
    My code is
    <p><a href="popup.html"><img src="../Existing business1.jpg" alt="existing1" name="services" width="359" height="283" id="services" longdesc="http://Hr existing" onclick="MM_openBrWindow('popup.html','popup','width=430,height=300')" /></a></p>
    Can anyone help?
    Thanks

    Which browser(s) are you testing?
    Have you got a URL to your test pages yet?  That's the best way to get help.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Desktop image will not change in IOS 10.8.2

    When trying to change the desktop backgournd the system just spins its wheels (application not responding).
    Ver 10.8.2
    MacBook Pro

    Open Finder, select Go > Go to Folder, type ~/Library/Preferences and delete com.apple.desktop.plist

  • My latest download images will not show in my browser properly

    I am using Elements 5. I have 1100 images in the organiser.
    The only way I can see recent images is in the largest thumbnail view.
    If I reduce the size of the thumbnails, the images appear just as a blank square with the "eggtimer" icon.
    How do I correct this please?

    It seems either you have imported lot of photographs or your machine has low mermory.
    It usually happens when Organizer is working on thumbnail generation for lot many files. If you want to get rid of this, do 'Update Thumbnails' for photographs in group of 5-10 whichever works for you.
    try and share the results

  • HT5622 i have changed apple id will not change on itunes

    changed apple id will not change on itunes

    It is one or the other - an entirely new Apple ID or a change to the existing.
    If an entirely new Apple ID, all apps include DRM protection that is tied to the Apple ID that was used to download the apps. You will need to use the former Apple ID and password to update apps that were downloaded with that Apple ID if an entirely new Apple ID was created.

  • Safari 5.1 will not change my privacy settings without quitting and restarting the browser.

    I have installed Safari 5.1. When I attempt to change the block cookies setting in the privacy preferences, the browser will not change the settings until I quit and restart the browser.

    Quit Safari. Open a Finder window. Select your Home folder in the Sidebar on the left.
    Open the Library folder then the Cookies folder.
    Move the Cookies.plist file from the Cookies folder to the Trash.
    Restart your Mac.
    If that didn't help, quit Safari. Open a Finder window select your Home folder in the Sidebar on the left. Then open the Library folder, then the Caches folder, then the com.apple.Safari folder. Move the cache.db file from the com.apple.Safari folder to the Trash. Relaunch Safari.

  • Pop Up blocker exceptions are not saved in the browser for use, the next time the PC reboots. How do you save these exceptions for long term use?

    Pop Up blocker exceptions are not saved in the browser for use, the next time the PC reboots. How do you save these exceptions for long term use?

    In case you are using "Clear history when Firefox closes":
    *do not clear the Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/remove-browsing-search-and-download-history
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
    If you have software like Advanced SystemCare (Surfing Protection feature) that might reset some files to older versions to protect these files against changes then check the settings or uninstall this software.

  • I am trying to import developed images from LightRoom 5 into Photoshop 6.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, you do not have necessary access permissions or another progra

    I am trying to import developed images from LightRoom 5 into Photoshop 6.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, you do not have necessary access permissions or another program is using the file.  Use the 'properties' command in the Windows Explorer to unlock the file'.  This has not happened before.  How do I change this?

    Could not open a scratch file because the file is locked or you do not have the necessary access privileges. (…) | Mylen…
    Mylenium

  • Why does the Iphone4 freeze up after downloading the IOS7.6 patch showing an ITUNE icon? The phone will not change screens for 4 hours.

    Why does the Iphone4 freeze up after downloading the IOS7.6 patch showing an ITUNE icon? The phone will not change screens for 4 hours.
    I Turn it off/on  and nothing changes.

    Hello bigboza,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/ts3281
    If the device remains unresponsive or does not turn on (or power on), reset your device.
    If there is no video or if the screen remains black, verify that the device has enough charge to turn on:
    If you are using an iPad, ensure that it's connected to the USB Power Adapter supplied with the device.
    Let it charge for at least twenty minutes, then see if it starts normally.
    If there is no image on the screen, press the Sleep/Wake button to attempt to wake the device.
    If the screen displays a red battery icon, continue charging the device until the battery is fully charged. Learn more about charging iPhone and iPod touch, or iPad.
    If the above steps do not resolve the issue, or the if the screen remains black or shows a persistent Apple logo, try restoring with iTunes:
    Connect the device to your computer and open iTunes.
    If the device appears in iTunes, select and click Restore on the Summary pane. Learn more aboutrestoring iOS software.
    Have a nice day,
    Mario

  • My Still Image will not fill the Canvas????

    I want to create the effect of panning down through space.
    I took a still frame from a movie in FCP sized at 720 x 576 and brought it into Photoshop, and made the canvas 720 x 1146 and copied the image and pasted it on top of itself. So my image is now 720 x 1146, and I exported it as a .psd and brought it into FCP.
    When dragged from the Browser and into the Timeline, the image does not take the full width of the Canvas. It seems long enough, though now not wide enough to fill the Canvas. What is going on?
    Thanks.

    well 720x576 is PAL. Why you've got a 640x480 sequence only you can say, if you want it to be 720x576 then you should make a new sequence and choose an appropriate sequence setting.
    The reason your still is displaying small in the centre of the frame is that fcp is automatically scaling the 1146 pixels down to fit the 480 pixel height of the sequence. If you set the canvas view size to a small size (25 or 50% and turn on overlays you can click on the corner of the wireframe around you still and drag to resize it to fill the width of the frame and overlap the top and bottom. Move the playhead to the frame you want the tilt down to start and then you can click anywhere within the wireframe to reposition the still. Double click the still in the timeline to load it in the viewer, then go to the motion tab and make a keyframe here, then move the playhead to where the tilt down will end and make another keyframe.

  • I am trying to import developed images from LightRoom 5 in o Photoshop 6.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, you do not have necessary access permissions or another progra

    I am trying to import developed images from LightRoom 5 Photoshop 6 for further editing.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, or you do not have necessary access permissions or another program is using the file.  Use the 'Properties' command in the Windows Explorer to unlock the file. How do I fix this?  I would greatly appreciate it if you would respond with terms and procedures that a computer ignorant user, such as me, will understand.   Thanks.

    Have you tried restoring the Preferences yet?

  • View only works in one direction,will not change when I turn the phone

    view only works in one direction,will not change when I turn the phone

    Is the rotate lock on?
    http://appletoolbox.com/2013/03/iphone-ipad-or-ipod-screen-will-not-rotate-fix/

  • In the advanced tab of languages and Region the time and date formats will not change

    For a certian Application I am using I need to change the format of the Time and Date. I had no problems in Mountain Lion. In the advanced tab of languages and Region the time and date formats will not change. I need the date format to read as 01/01/14 and time format to read 13:00. As I said this was easily done in Mountain Lion and all previous Apple OS. I suspect it's an issue with in the OS.

    You're right, it has been that way for a long time. I've never bothered reporting it as a bug since it's simple enough to deal with, but reporting it would be a reasonable thing to do.

  • Downloaded the most current version and PNG images will not show

    I'm running XP with SP3 and the most current versions of Firefox and IE8. I have the AdBlock add on. PNG images do not appear (on either browser) only blank spaces where a picture should be.
    == This happened ==
    Every time Firefox opened
    == I updated my computer to SP2 and current browsers

    Hello Scott.
    Try reading these support articles:
    http://support.mozilla.com/en-US/kb/Websites+look+wrong
    https://support.mozilla.com/en-US/kb/Images+or+animations+do+not+show
    I hope it helps.

Maybe you are looking for