xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Kleineikenscheidt <ste...@kleineikenscheidt.de>
Subject Re: I/O error while loading image
Date Wed, 02 Sep 2009 18:09:44 GMT
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

So, no FOP problem here.


On Wed, Sep 2, 2009 at 12:27 AM, Stefan
Kleineikenscheidt<stefan@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

View raw message