I used the below code to read an image from a database.....and i got the output...as i'm new to c, i don't know whether'm correct or not. My doubt is whether 'm getting the pixel values of image as output?
Please help me...
Thanks in advance
unsigned char image;
if((fp = fopen("image001.jpg","r+")) == NULL)
printf("Unable to open the specified file.\n");
image[r][c]=(unsigned char) fgetc (fp);
This post has been edited by sreena: 03 March 2008 - 11:09 AM