justin123
19th April 2011, 22:15
I have a small problem with QBuffer. I'm writing PNGs to it and writing the byte array in my map file using fwrite in this format:
Size
Data
When I read the first image from the map file is says its size is 304, but that is not correct because when I try to read the second image the size reads as zero and the image is never read correctly.
Is 304 not the size of the array in bytes? If so then the image is not being written correctly in first place.
Size
Data
When I read the first image from the map file is says its size is 304, but that is not correct because when I try to read the second image the size reads as zero and the image is never read correctly.
Is 304 not the size of the array in bytes? If so then the image is not being written correctly in first place.