> I have binary image blobs stored in a database and want to > interpret them with Fl_Shared_Image, but this class expects > to read from a file. As a quick hack currently I write the > blob to a temporary file and then pass the file name to > Fl_Shared_Image. > Any suggestions? Should I try extending Fl_Shared_Image to > take a buffer or is there a work around?
What format are the blobs in? Just in the last few days, someone posted code in this list for reading PNG image data from RAM, and it would br trivial to write an equivalent function for JPEG data... If what you have is the "raw" binary data for the pixels, then something like this might work for you: http://www.fltk.org/articles.php?L468 HTH, -- 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

