I want to read an image(JPEG) file from hard disk to memory. How can I do this? What kind of variable type should I use ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use a big char array
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 ?