You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Amita Rathore <ar...@in.ibm.com> on 2005/05/10 06:16:27 UTC

How to prevent SVG Image from caching

I am using data scheme to insert an image. like this :

<fo:instream-foreign-object>
   <svg:svg xmlns:svg="http://www.w3.org/2000/svg" 
xmlns:xlink="http://www.w3.org/1999/xlink" width="542px" height="506px">
   <svg:image width="64" height="48" 
xlink:href="SRC="data:image/gif;base64,1QMMA..." />
   </svg:svg>
</fo:instream-foreign-object>

The image gets cached and the same image is displayed even after I  change 
the value for xlink:href.

I am resetting the cache also using 
:org.apache.fop.image.FopImageFactory.resetCache();
 
What should be done to avoid cachig of images. Thanks. 

Re: How to prevent SVG Image from caching

Posted by Chris Bowditch <bo...@hotmail.com>.
Amita Rathore wrote:

> 
> I am using data scheme to insert an image. like this :
> 
> <fo:instream-foreign-object>
>    <svg:svg xmlns:svg="http://www.w3.org/2000/svg" 
> xmlns:xlink="http://www.w3.org/1999/xlink" width="542px" height="506px">
>    <svg:image width="64" height="48" 
> xlink:href="SRC="data:image/gif;base64,1QMMA..." />
>    </svg:svg>
> </fo:instream-foreign-object>

Well I believe the problem is that the image is inside the SVG and therefore 
handled by Batik rather than FOP. Not sure how you can tell Batik not to cache 
the images. Perhaps some of the other committers can help.

Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org