Link to home
Start Free TrialLog in
Avatar of sriram_bandi
sriram_bandi

asked on

C PROGRAMING

How to open .bmp and .jpeg files using
c program?
Avatar of sriram_bandi
sriram_bandi

ASKER

Adjusted points to 80
Please send the answer as early as possible.


FILE *fp;

fp=fopen ("filename.bmp","rb");

or

fp=fopen (filename.jpeg","rb");

For a description of the fileformat check

http://www.wotsit.org/
We already know that any file can be opened in C using File operations. But how to read the actual picture data from a bmp file. Because bmp file has a format i.e a header will be load at first inorder to identify the bmp file. So we request you to send the bmp format.
Avatar of ozo
rbr gave a link to a description of the file format
http://wotsit.org/cgi-bin/download.cgi?bmp
What is you OS? What you want to do with BMP/jpg file?
ASKER CERTIFIED SOLUTION
Avatar of sumant032199
sumant032199
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial