|
was that exactly your question ?
|
|
|
|
|
i have already a image binary data, how to convert back to image file.
|
|
|
|
|
That is far from clarifying your question...
What is your problem exactly ?
|
|
|
|
|
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 ?
|
|
|
|
|
i have image binary data(file) how do i convert back to image.
|
|
|
|
|
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"
|
|
|
|
|
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
|
|
|
|
|
i have image.bmp it is saved in image.bin file format, bin is the file format.
|
|
|
|
|
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.
|
|
|
|
|
sorry .bin is the file extension.
|
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|
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).
|
|
|
|
|
For example :
let's assume
that program uses a code like this:
#include<iostream><br />
<br />
<br />
void convertToASCII() {<br />
FILE *bmp;<br />
FILE *ASCII;<br />
bmp=fopen("1.bmp","r");<br />
ASCII=fopen("1.bin","w");<br />
char c; int x; <br />
while( (c = fgetc( bmp )) != EOF )<br />
{<br />
for( x = 0; x < 8; x++ )<br />
fputc( '0' + !!(c&(1<<x)), ASCII );<br />
}<br />
<br />
}<br />
int main() {<br />
convertToASCII();<br />
}<br />
<br />
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?
|
|
|
|
|
hi all,
i m use sockaddr_in to cocket connection.
is there any valid range of pot number to establish connection or i can use any port number for connection.
please help me for this.
thanks in advance.
|
|
|
|
|
See here[^] for some advice; always best to try Google first.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
Hi everyone! I am writing a Bank Simulation program in C++ and it's a console application. In entering account passwords I do not want the characters entered to be shown on screen but to output the asterik character for every character entered as follows
while (true)
{
cout << "\n\nEnter administrator account password (press C to cancel): ";
int i(0);
char input;
while ((input = getch()) != '\r' && i < ADMINISTRATOR::ADMIN_PASS_LENGTH)
{
if (input == '\b')
{
if (i > 0)
{
password[i - 1] = '\0';
--i;
continue;
}
}
password[i] = input;
++i;
cout.put('*');
}
password[ADMINISTRATOR::ADMIN_PASS_LENGTH - 1] = '\0';
....
....
}
I used the function
getch() which provides unbuffered input. When a character is entered, it is saved and the asterik character (*) is printed on the screen. If the character entered is the backspace, the last character saved in the password buffer is cleared by setting it to '\0'. This seems to work fine.
Now the problem is that when the backspace character is entered, I also want to clear the asterik characters printed in the console window so that it can be seen that the asterik characters are being cleared but I don't know how I can clear the asterik characters as the user presses the backspace character. I need help.
|
|
|
|
|
If you're developing for Windows then consider using the console API , here[^] an example.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
also clrscr() is there in turbo c++ and some others.
|
|
|
|