From: Radim <we...@se...> - 2015-02-16 23:13:53
|
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. |