Cameron McCormack wrote: > > > Hi Andrew. > > Andrew Shellshear: > > Is there any way in the SVG DOM of directly specifying the content of an > > image, for example, as a base64 string, instead of as an IRI Reference? > > Yes you can use a data: URI with base64 encoded data. > > http://en.wikipedia.org/wiki/Data:_URI_scheme > <http://en.wikipedia.org/wiki/Data:_URI_scheme> > > So: > > var imgElement = …; > imgElement.href.baseVal = 'data:image/jpeg;base64,/9j/4AA…’;
Oh, of course! I'd completely forgotten about that. Thanks, that's perfect. Andrew. ----- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/

