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<[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to