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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wed 11/8/2006 6:37 AM To: [email protected] Cc: [email protected] Subject: Re: ImageTagRegistry and partial images? Hi Michael, "Bishop, Michael W. CONTR J9C880" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
<<winmail.dat>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
