>>>>> "SD" == Steven Dow <[EMAIL PROTECTED]> writes:
SD> Can someone tell me how a jpg is translated to the format below? SD> The documentation I've found does not give much detail about this SD> method of embedding images. If you paste this simple example into SD> a new SVG file you will see the result is an image. What is the SD> translation algorithm? Any help is much appreciated... Everything after the 'base64,' is the JPEG file converted using a base64 encoding (this converts binary data to a 'text' format that has the nice property of not using any reserved chars for URLS etc). The canonical description of the base64 encoding can be found at: http://www.ietf.org/rfc/rfc2045.txt The batik toolkit includes Streams that can do this for you: org.apache.batik.util.Base64EncoderStream (output stream) org.apache.batik.util.Base64DecoderStream (input stream) Hope this helps... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]