J�r�me Tricand de la Goutte wrote:

> Hello TJ
> 
> Svg support image definition like <?xml version="1.0" encoding="UTF-8" 
> standalone="no" ?>
> <image width="314" height="131" x="50" y="100" 
> xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAACDCAIAAACSkkACAAAAB3RJTUUH0gsUEggc+PNHBAAAAAd0
>  
> RVh0QXV0aG9yAKmuzEgAAAAMdEVYdERlc2NyaXB0aW9uABMJISMAAAAKdEVYdENvcHlyaWdodACs 
> 
> ...
> I/l5XefzDm+WX9fqGa1Qmg/DEIZ1hTB014YU+E5Yax3V/dlsdn6e/nv+vsObua4V+uTDMITxD0vM 
> thHiPWzHAAAAAElFTkSuQmCC " />
> where the string is the base64 coded image.
> 
> What about storing such a string in your database? So you won't have to 
> store you image on your webserver. But be careful about the storage 
> volume of your database.
> 
> And you could also add the height and width of the image in the database...
> 
> But I don't know how to generate such a string. Many gurus may give you 
> advices... :)

Well, there are loads of free Base64 encoder/decoders, for any system, 
including some online ones, plus lot of source code to make your own...

BTW, I wonder why the SVG WG didn't choose ASCII Base-85, either as 
defined in RFC 1924 <http://www.faqs.org/rfcs/rfc1924.html> or by Adobe 
itself for PostScript 
<http://www.lohninger.com/helpcsuite/encodeascii85.htm>, as this format 
is quite more compact.

Of course, since these encodings use characters illegal in XML, it would 
have needed to alter the character set used, which is possible, or more 
simply to put the encoded data in a CDATA block (excluding ] from the 
Adobe encoding).

-- 
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  For servers mangling my From and Reply-To fields,
--  please send private answers to PhiLho(a)GMX.net
--  --  --  --  --  --  --  --  --  --  --  --  --  --


-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to