« Return to Thread: Getting a JPEG or PNG from a SQLite Blob onto the screen

Re: Getting a JPEG or PNG from a SQLite Blob onto the screen

by Tei-2 :: Rate this Message:

Reply to Author | View in Thread

On Thu, Aug 21, 2008 at 12:30 AM,  <neveryone@...> wrote:
> I know that I can save JPEG or PNG data as a blob in my SQLite
> database, but i don't know how to get it back and display it as an
> image. If I put in an <image src='?image'> or something similar, it
> will treat the data in that field as the url, not the image data. Can
> someone put me on the right track here?

If everything else fails. You can always create a data url.
"data:image/gif," + allthebinarydatahere
_______________________________________________
dev-tech-xul mailing list
dev-tech-xul@...
https://lists.mozilla.org/listinfo/dev-tech-xul

 « Return to Thread: Getting a JPEG or PNG from a SQLite Blob onto the screen

LightInTheBox - Buy quality products at wholesale price!