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 mathos <pa...@leea.ch> on 2011/02/08 18:58:59 UTC

Problem inserting gif image

I hava a java application wich generates a pdf through FOP 1.0. My source
code generates a string which looks like this (just an example):

<fo:external-graphic content-width="0.5cm" content-height="0.5cm"
src="url('data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yq
mCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkV
J+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQ
ZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0
vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3
uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7')" />

Wenn I run the application from my developer interface (JDeveloper),
everything works fine. To distribute my application I compile an wrap
everything into a jar-file. After running it,  the pdf is generated
correctly but without the image. I can't understand what is missing.

-- 
View this message in context: http://old.nabble.com/Problem-inserting-gif-image-tp30875128p30875128.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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


Re: Problem inserting gif image

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
My best guess is a class loading problem. Any errors in the logs? I
would expect there to be if the image is missing in the output. Make
sure fop.jar and xmlgraphics-commons.jar are in the same class loader
context. Or the server uses a weird Java Runtime with no GIF ImageIO
codec.

On 08.02.2011 18:58:59 mathos wrote:
> 
> I hava a java application wich generates a pdf through FOP 1.0. My source
> code generates a string which looks like this (just an example):
> 
> <fo:external-graphic content-width="0.5cm" content-height="0.5cm"
> src="url('data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yq
> mCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkV
> J+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQ
> ZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0
> vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3
> uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7')" />
> 
> Wenn I run the application from my developer interface (JDeveloper),
> everything works fine. To distribute my application I compile an wrap
> everything into a jar-file. After running it,  the pdf is generated
> correctly but without the image. I can't understand what is missing.
> 
> -- 
> View this message in context: http://old.nabble.com/Problem-inserting-gif-image-tp30875128p30875128.html
> Sent from the FOP - Users mailing list archive at Nabble.com.



Jeremias Maerki


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