In fact inserting into BLOB it works, extracting and displaying from blob works... but creating the svg from blob field using the example provided below, will not output any image, and in IE status bar I have a msg: not well-formed line 1, column 911
In fact I think there is a syntax MISTAKE If anyone could see it please reply: .... echo "<image width=\"314\" height=\"131\" x=\"50\" y=\"100\" xlink:href=\"data:".$type.";base64,".$continut." \"></image>"; .... --- In [email protected], Jérôme Tricand de la Goutte <[EMAIL PROTECTED]> 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,iVBORw0KGgoAAAANSUhEUgAAAToAAACDCAIA AACSkkACAAAAB3RJTUUH0gsUEggc+PNHBAAAAAd0 > RVh0QXV0aG9yAKmuzEgAAAAMdEVYdERlc2NyaXB0aW9uABMJISMAAAAKdEVYdENvcHlyaW dodACs > > ... > I/l5XefzDm+WX9fqGa1Qmg/DEIZ1hTB014YU+E5Yax3V/dlsdn6e/nv+vsObua4V+uTDMI TxD0vM > 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... :) > > Hope it helps. > > Jérôme > > Peter Kalev wrote: > > >How about a call to a file on the server that will find the right image > >based on information from the DB and redirect to it... > > > >Peter Kalev > >Senior Developer, > >SWF, LLC > > > > > >-----Original Message----- > >From: TJ [mailto:[EMAIL PROTECTED] > >Sent: Wednesday, January 19, 2005 11:07 AM > >To: [email protected] > >Subject: [svg-developers] Embedding images from a database? > > > > > > > >Hello, > > > >Please excuse me if this is a bit off topic, or has been covered > >elsewhere. I have searched the archives but was unsuccessful. > > > >I am embedding images into svg using the image tag. The images are > >stored on a web server. For example it is typicial to see something > >like this in my svg. > ><image width="100" height="100" > >xlink:href="www.mydomain.com/myImage.gif"/> > > > >I would actually like to be able to store my images in a MySql > >database rather than in a web directory. Is there anyway to link an > >image, stored as a BLOB perhaps, in a database to my image tag. So > >for example: > ><image width="100" height="100" xlink:href="some magic query to my > >database"/> > > > >I am not too familiar with MySql. Any suggestions welcome. > > > >Thank you, > >TJ > > > > > > > > > > > >----- > >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 unsubscribe send a message to: svg-developers- [EMAIL PROTECTED] > >-or- > >visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" > >---- > >Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > > > -- > Jérôme Tricand de la Goutte > > Société Logatique > 50 rue Marcel Dassault > 92100 Boulogne-Billancourt > > 01 46 21 59 59 > ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- 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/

