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 Frank Toennies <Na...@web.de> on 2004/03/01 07:36:28 UTC

Re: Convert base64 (jpeg) into SVG and display result in browser

On Sun, Feb 29, 2004 at 05:53:25PM +0000, beyaNet Consultancy wrote:
> Hi,
> I am new to the batik users forum and this is my first post. What I 
> want to know is whether it is possible to:
> 
> 1. Convert a base64 (jpeg) string into svg and then display the result 
> in a browser using the <object>, <image>, <img>. or <embed> tags?
> 
> If so, how would I go about doing this?

Hi!

I did the embedding with with the image tag:
<image x="0" y="300" width="100" height="100"
xlink:href="data:image/jpeg;base64,/9j/4AAQSDBgNDRg...more.base64.encoded.data...lR2M//9k="
/>

All you need is a Base64 Endcoder (according to your setup one in Java,
there are many around, but i do not know if there is one public
accessible in the batik-framework)

Greetings Frank





---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


genxsvg -- using Batik

Posted by "Anthony J. Starks" <aj...@comcast.net>.
A quick note on using genx to generate SVG, mentions Batik tools:
http://home.comcast.net/~ajstarks/projects/genxsvg.html

Re: Convert base64 (jpeg) into SVG and display result in browser

Posted by Thomas DeWeese <Th...@Kodak.com>.
Frank Toennies wrote:

> I did the embedding with with the image tag:
> <image x="0" y="300" width="100" height="100"
> xlink:href="data:image/jpeg;base64,/9j/4AAQSDBgNDRg...more.base64.encoded.data...lR2M//9k="
> />
> 
> All you need is a Base64 Endcoder (according to your setup one in Java,
> there are many around, but i do not know if there is one public
> accessible in the batik-framework)

    There is a Base64 encoder stream:

	org.apache.batik.util.Base64EncoderStream



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org