>>>>> "RD" == Raju Dave <[EMAIL PROTECTED]> writes:
RD> Is it possible to convert jpeg image into svg format with batik?
TD> [...] you can simply use the <image> tag to reference the JPEG,
TD> just like you might do in HTML, or if you want the SVG to be
TD> standalone you can Base64 encode the image and include it
TD> inline. We don't really provide tools for this, but it's so
TD> trivial there isn't much point.
RD> Can you throw some light on Base64 or maybe give me url where i
RD> can get more information.
Well, the offical reference for Base64 is:
http://www.fourmilab.ch/webtools/base64/rfc1341.html
However from that viewpoint we actually do provide
some tools:
org.apache.batik.util.Base64EncoderStream
Is a wrapper stream that encodes any data sent to it as Base64
before writting it to the stream it is wrapping. If you would like to
see examples of SVG files that use base64 encoding you can look at
samples/tests/dataProtocol.svg.
There are also quite a number of unix tools that will do Base64
encoding (mmencode being a popular one). FYI Base64 is how almost all
multi-part mime attachements are encoded for e-mail.
Anyway good luck.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]