You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Thomas E Deweese <th...@kodak.com> on 2001/07/05 19:39:52 UTC
Images
>>>>> "DV" == David VanderBrooke <VA...@war.wyeth.com> writes:
DV> I would like to include the image in the svg via base64 encoding.
DV> The examples work for png but any pngs I generate don't work.
DV> I've taken the example base64 strings and placed them in my svg
DV> and it works. I've used my Base 64 decoder to decode the examples
DV> and they make good png files.
In the process of writing tests for the Base64 codec I noticed and
then fixed a bug in the current Base64 decoder. It is possible that
if you were very unlucky you may have been hit by this bug. Thus I
suggest trying the latest CVS to see if the problem has gone away.
If not my offer still stands to try and debug with one of your SVG
files.
DV> Are there certain kinds of pngs that work?
>>>>> "TD" == Thomas E Deweese <th...@kodak.com> writes:
TD> It _should_ support any PNG, of course the proof is in the
TD> pudding.
DV> To base 64 encode I'm using the sun.misc encoder and encoding only
DV> the file contents.
DV> I tried various forms of tiff files as well, mime type tiff. None
DV> worked, either by base 64 or referenced.
TD> This is strange, I have a fairly large collection of tiff
TD> image variants and it reads the _vast_ majority of them.
DV> Gif files work if I reference them. I didn't try base 64 encoding
DV> and including them.
TD> Do the PNG images work when referenced? If so I would guess
TD> there is something weird in your base64 encoding.
DV> What should work now or where can I look for documentation?
TD> The source?
TD> Probably your best bet is to send us a couple of small
TD> examples (original images, and base64 versions) and we can see if
TD> we can reproduce the problem or not.
TD> ---------------------------------------------------------------------
TD> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org For
TD> additional commands, e-mail: batik-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org