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 Stefan Kleineikenscheidt <st...@kleineikenscheidt.de> on 2009/09/02 00:27:48 UTC
I/O error while loading image
Hello,
I get the following error when I use a URIResolver and return an image
(I've tried PNG, GIF) as a StreamSource (containing an InputStream).
[apache.fop.fo.FONode] bind I/O error while loading image: null
When I write the InputStream to a file, I can perfectly open the
image. Any ideas?
Btw: I am using 0.95.
-Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: I/O error while loading image
Posted by Stefan Kleineikenscheidt <st...@kleineikenscheidt.de>.
I digged a little bit in the sources and found out the reason is an
EOFException raised in
org.apache.fop.image.loader.batik.PreloaderWMF.Loader (line 91):
DataInputStream din = new DataInputStream(in);
int magic = EndianUtils.swapInteger(din.readInt()); <--- here (readInt)
I am reading from a ByteInputStream, which is provided by the
application i want to extend. Apparently the byte array is messed up
somehow.
So, no FOP problem here.
-Stefan
On Wed, Sep 2, 2009 at 12:27 AM, Stefan
Kleineikenscheidt<st...@kleineikenscheidt.de> wrote:
> Hello,
>
> I get the following error when I use a URIResolver and return an image
> (I've tried PNG, GIF) as a StreamSource (containing an InputStream).
>
> [apache.fop.fo.FONode] bind I/O error while loading image: null
>
> When I write the InputStream to a file, I can perfectly open the
> image. Any ideas?
>
> Btw: I am using 0.95.
>
> -Stefan
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org