From: Scott W. <sco...@sb...> - 2015-02-17 02:43:53
|
See this posting: http://stackoverflow.com/questions/4559648/write-to-memory-buffer-instead-of-file-with-libjpeg The functions you should look into are: jpeg_mem_dest(...) jpeg_mem_src(...) I have been using them for years. ________________________________ From: Radim <we...@se...> To: lib...@li... Sent: Monday, February 16, 2015 5:13 PM Subject: [Libjpeg-devel-6x] read image from memory I would like to save and read images from database. Is there any way how to decompress image without reading it from file stream or compress it without writing to the file stream? I mean I would like to work with it only in memory. The images should be in database and I don't see the sense of writing the images into separate files on disk because these would be huge numbers of files. There is one more reason for it. There is 250 bytes in the begin of file which are same for every image so I would like to remove these 250 bytes and write them to db. So when reading data from db, I would complete the file in memory and then would like to be opened by libjpeg. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk _______________________________________________ Libjpeg-devel-6x mailing list Lib...@li... https://lists.sourceforge.net/lists/listinfo/libjpeg-devel-6x |