How to read an image file from hard to memory using C [closed]
I want to read an image(JPEG) file from hard disk to memor开发者_开发知识库y. How can I do this? What kind of variable type should I use ?
Use a big char array
char data[4096]
And fread(3)
chunks into it. Of course an entire JPEG won't fit in 4096 bytes, but perhaps you can work with chunks instead of the entire file ?
精彩评论