>>>>> "MG" == Michael Gale <[EMAIL PROTECTED]> writes:

MG> It appears to be a problem with the way the image was being
MG> encoded.  I am using Batik's
MG> org.apache.batik.util.Base64EncoderStream to do the job, and it
MG> looks like (prepare to be blinded by a flash of the obvious) the
MG> stream must be closed in order for the remaining bytes to be
MG> written.  I am unable to test this theory right now, but I'm
MG> inclined to believe it's the source of the problem.  

    As the author of the code I can confirm your belief.  Until the
stream is closed I can't write the last triplet (because it might not
be the last triplet).

MG> It's either that or little green gremlins have infested my
MG> machine, which I suppose is just as likely...

    Happens to me all the time! :)

MG> -----Original Message----- From: Thomas E Deweese
MG> [mailto:thomas.deweese@;kodak.com] Sent: Wednesday, November 13,
MG> 2002 2:36 PM To: Batik Users Subject: RE: Bugzilla Defect #14258


>>>>> "MG" == Michael Gale <[EMAIL PROTECTED]> writes:

MG> I have attached the SVG document to generate the error using Batik
MG> v1.5 b4.  It should also be noted that once the exception is
MG> thrown, no other SVG document can be opened from that point
MG> onward.

MG> The attached file will display a rectangle initially, and when the
MG> user clicks within the shape, it should switch to the image.  I
MG> have tested it with Adobe's plug-in and it seems to work as
MG> expected.

MG> Let me know if you need anything else.

MG>     Thanks for putting togeather the test.

MG>     Well, it appears that the JPEG is truncated, it isn't clear if
MG> this is due to the base 64 data being truncated as well (I suspect
MG> it is as most b64 data has some '=' at the end to fill out the
MG> triplet and your example doesn't have this - but this is far from
MG> conclusive).

MG>     To test this I replaced your b64 image with one I generated
MG> (using mmencodee on UNIX), and your test worked fine (my update is
MG> attached)

MG>     I'm guessing Adobe is just being more forgiving of errors.


MG> ---------------------------------------------------------------------
MG> To unsubscribe, e-mail: [EMAIL PROTECTED] For
MG> additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to