> my application has to display JPEG images, but does not load
> them from disk files. They come in as blobs from a remote database.
> 
> Is there a way to load these into an Fl_JPEG_image?

If you already have them as a binary blob, then Fl_JPEG_Image is
probably not what you want (since it is meant for loading jpeg files
from disk etc.)

Instead, just decompress the blob into RAM somewhere using the normal
jpeg functions, then use that decompressed image in RAM to form an
Fl_Image or even just display the data directly in an Fl_Box or
something.

There's a how-to that touches *some* of this here:

http://www.fltk.org/articles.php?L468 

It doesn't cover decompressing the binary blob into RAM, but that's a
fairly common jpeg lib thing so a quick google will surely turn
something useful up. In fact, don't the jpeg docs in the lib describe
doing that? I can't remember now, it is so long since I read 'em...

-- 
Ian


SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to