Yes, currently I'm flushing the entire cache to make it
easier on the XMPP client that lets me know when the file
transfer is complete. What we did to work around the
problem was to download the image to another directory, then
rename it properly when the file transfer was complete.
I think my test could be modified; you'd have to copy the
image elsewhere, then "stream" it via I/O in a
separate thread and introduce an artificial delay. I'll see
if I can work something up. It looks like Batik is trying
to read the partial file and hitting an early EOF. I just
figure it'd fail silently and place the broken link image
up, but looks like that breaks too.
Michael Bishop
________________________________
From: thomas.deweese kodak.com [mailto:thomas.deweese kodak.com]
Sent: Wed 11/8/2006 6:37 AM
To: batik-users xmlgraphics.apache.org
Cc: batik-users xmlgraphics.apache.org
Subject: Re: ImageTagRegistry and partial images?
Hi Michael,
"Bishop, Michael W. CONTR J9C880"
<Michael.Bishop je.jfcom.mil> wrote on
11/07/2006 11:31:38 AM:
> I think this problem is occurring when I flush the
ImageTagRegistry in
the
> middle of a download where an image is being
transferred.
> It looks like it breaks on a partial image,
Yes, flushing an image in the middle of a download will
cause problems
with
the image being downloaded to fail. However, I think this
will only
happen if
you have multiple references to the same URL. Are you
flushing the entire
cache?
I'll have to think about this a bit more to figure out
the best way to
correct this. Do you know can I easily modify your previous
example to
cause this problem?
> but further can?t find the ?broken link? image.
Yes, it looks like it's looking in the wrong place for
the localization
file. It looks like this will actually be a bit icky to
fix, but I don't
think this is really a problem. I believe the real broken
image is
provided elsewhere.
------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribe xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help xmlgraphics.apache.org
------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribe xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help xmlgraphics.apache.org |