I am new to StackOverFlow and wish there are experts to my problem, which consumed me a week time!
I embedded my JPEG files into a single data file, and need to load them on demand to avoid memory problem in mobile phone.
I wrote something like:
char *imageBuffer = getBytes(sourceFilename, offset, length);
to get a JPEG file data from a sourceFile with offset and length. I saved the bytes to file and it works.
My problem is how can I construct a QImage from the (char *) data? I tried many methods and haven't any success.
Wishing that there is experienced members to solve my problem. Thanks!!!