convert binary file to image/bmp file in vc++
-
How did you convert it from .BMP to .BIN? Just reverse the process.
Just say 'NO' to evaluated arguments for diadic functions! Ash
-
Actullay it is converted as binary file in linux, i have to convert binary file back to image in windows, i dont know how to convert.
nobody knows what you mean by "binary file"
-
i have binary image data i have to convert back to image file. ex : image.bmp converted to binary file image.bin. Now i have to convert "image.bin" binary file back to image.( imgage.bin to image.bmp).
Just change the extension ?
Cédric Moonen Software developer
Charting control [v3.0] OpenGL game tutorial in C++ -
nobody knows what you mean by "binary file"
-
what actually i want,i have a device it scans finger(finger print information)and it stores as a file(in binary format).I have to convert this file to finger print image.
You'll first need to figure out what a .bin file is (i.e., it's format).
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
what actually i want,i have a device it scans finger(finger print information)and it stores as a file(in binary format).I have to convert this file to finger print image.
until you explain what this "binary format" is, nobody can help you.
-
You'll first need to figure out what a .bin file is (i.e., it's format).
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
jiya-123 wrote:
i have image.bmp it is saved in image.bin file format, bin is the file format.
bin is not a format, merely an extension on the name of the file. You need to understand the actual format of the contents in order to convert it into a bitmap. Go back to the documentation for the program that created the file to see exactly how it is formatting the data. It is impossible to answer your question without that information.
Just say 'NO' to evaluated arguments for diadic functions! Ash
-
Good luck.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
until you explain what this "binary format" is, nobody can help you.
-
Yeah, but what is the INTERNAL format of the .bin file? I could rename a .bmp file to a .bin file and it would still be a BMP file.
Watched code never compiles.
-
Hi how to convert binary file to bmp/jpg image. I have to convert image(BMP/JPG) to binary file and binary file to image(BMP/JPG). Please help. Thanks in advance.
you should present some code here and pin point the problem. May be you are not telling the problem as you should be telling (well im not sure about that tooo).:thumbsup:
-
jiya-123 wrote:
sorry .bin is the file extension. Quote Selected Text
You have repeated this enough times; try answering the basic question: what is the format of the data in the file? If you do not understand what we are asking then you are never likely to resolve this issue.
Just say 'NO' to evaluated arguments for diadic functions! Ash
-
Hi how to convert binary file to bmp/jpg image. I have to convert image(BMP/JPG) to binary file and binary file to image(BMP/JPG). Please help. Thanks in advance.
For example : let's assume that program uses a code like this:
#include<iostream> void convertToASCII() { FILE *bmp; FILE *ASCII; bmp=fopen("1.bmp","r"); ASCII=fopen("1.bin","w"); char c; int x; while( (c = fgetc( bmp )) != EOF ) { for( x = 0; x < 8; x++ ) fputc( '0' + !!(c&(1<<x)), ASCII ); } } int main() { convertToASCII(); }
you are looking for the function that converts back the bin file to bmp i guess.. as far as i understood your question is this.. am i right?