Thank you for the advice.
The Option in the Browser doesn't help, because the image file seems to be
cached on the server side.
I have done a simple test: I start the thread in the servlet which is doing the
image capture and writing of the jpg file. I access this file from lets say
computer a with a browser: http://mycomputer:8080/image.jpg, i access it again
after the time expired for updating the image from the servlet, still I see the
first image token. Then I acces the image file from let's say computer b and
push the relaod button. Afterwards I acces the same address from computer a by
just typing the address again and I see the updated image.
More ideas?
thanks in advance
Christian Faubel
"Kumar, Ashutosh(sdc)" wrote:
> There is always an option in Browser to refresh the cache and delete the
> files. from there you can do this.
>
> ashu
>
> > -----Original Message-----
> > From: Christian Faubel [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 02, 2000 8:04 AM
> > To: [EMAIL PROTECTED]
> > Subject: confusion about caching, need some advice
> >
> > I am currently working on an webcam application using Servlets and Swing
> > Applets. The servlet starts after a request from the applet a thread
> > that writes a .jpg file to a directory under the root of the
> > Javawebserver. Then the applet comes to fetch this image file by simple
> > Url-connection.
> > Now what is strange is the fact that this works nice using appletviewer,
> > but not using the plugin with a standard browser, using a browser with
> > plugin the image is never updated. It seems the Applet is reading a
> > cached version of the image file but on the server side. Pushing the
> > reload button in netscape navigator seems to free the cache, because
> > afterwords the applet as well displays the actual image file. (strange
> > enough with IE this doesn't work)
> > As by accesing the image file on the webserver the servlet does not seem
> > to handle this request but the javawebserver. So I wonder how I can turn
> > of caching for the javawebserver.
> > Another solution would be to periodically send the same command which
> > sends Netscape browser, when you push the reload button. What does this
> > command look like?
> >
> > Any help appreciated thanks in advance
> > Christian Faubel
> > --
> > /*************************************************************/
> > $B%U%!%&%Y%k!!%/%j%9!!;0MNEE5! (B $B%a%+%H%m%K%/%98&5f=j (B
> > $B!!!!!!!!!!!!#H#A%7%9%F%`8&5fIt!!%m%\%F%#%/%95;=Q%0%k!<%W (B
> > E-mail:[EMAIL PROTECTED]
> >
> > $B") (B570-8502 $BBg:eI\<i8};TBgF|ElD. (B1-1
> >
> > __________________________________________________________________________
> > _
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
--
/*************************************************************/
$B%U%!%&%Y%k!!%/%j%9!!;0MNEE5! (B $B%a%+%H%m%K%/%98&5f=j (B
$B!!!!!!!!!!!!#H#A%7%9%F%`8&5fIt!!%m%\%F%#%/%95;=Q%0%k!<%W (B
E-mail:[EMAIL PROTECTED]
$B") (B570-8502 $BBg:eI\<i8};TBgF|ElD. (B1-1
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
- confusion about caching, need some advice Christian Faubel
- Re: confusion about caching, need some advice Kumar, Ashutosh(sdc)
- Generating Sequence of Unique ID Patrick Munis
- Christian Faubel
