That is what i am trying to do, writing on the older image, and then send
out the new version to the  browser. I know the caching problem, but just to
make sure everytime , i renewed my servlet, i cleaned up all the temperary
internet files, restarted tomcat, still having the same problem. Seems that
g.drawImage(imageobject,0,0,null)  and g.drawString("anystring",10,10)
(where g is a Graphics object) methods don't work at the same time.
----- Original Message -----
From: "Mark" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 11:59 PM
Subject: Re: image manipulating via servlets on tomcat4


> Is the problem that the 'old' vs. newly generated image displays (with the
> same .gif/.jpg name)?  If that's the case then it's likely a problem with
> browser image caching.  The only way I found to get around that was to
> generate unique image file names each time the new images were generated,
> guaranteeing the browser would load the desired image each time.
>
> Hope this helps, if I understand the problem that is...
>
> Mark
>
>
> >At 10:54 PM 3/12/02 +0800, you wrote:
> >>Hi  everybody,
> >>I am using tomcat4 on win 2000.
> >>I have searched all the archives and almost all websites related with
java,
> >>to no avail.
> >>My problem is manupulating  images via servlets on Tomcat.
> >>In fact , there are tons of examples on the internet and on the archives
> >>which shows
> >>how to load an image from a local file and send to the browser, or
> >>dynamically
> >>generate a gif , or jpg image  and send it  to the user. Up to here ,
> >>everything is allright.
> >>But , it seems that there is no way to load an image from a file (at
> >>server), write some text on it
> >>or edit that image on hand, finally send it to hte browser as a new
image.
> >>I tried almost every way, in vain :(
> >>I hope, someone overthere, an expert, be nice enough to answer my
question,
> >>though my
> >>question might sound a little bit offtopic.
> >>Looking forward to your help hopefully.
> >>Cheers :)
> >
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to