Home > Net >  C # how to binary] [recorded the picture information into a normal image can open the file?
C # how to binary] [recorded the picture information into a normal image can open the file?

Time:04-15

A raw binary file, a normal image files, using c # language, how should the former to the latter?

Data link (free download) : https://download.csdn.net/download/Dust_Evc/16675902

After tried to introduce the method of online or failure (main body the following code), so please, help!

 
FileStream ReadStream=new FileStream (openFile. The FileName, FileMode. Open, FileAccess. Read);
Byte [] data=https://bbs.csdn.net/topics/new byte [ReadStream Length];
ReadStream. Read (data, 0, the data Length);

//reads the data into the picture
MemoryStream bs=new MemoryStream (data);
PictureBox1. Image=Image. FromStream (bs);
Or: pictureBox1. Image=new Bitmap (bs);

ReadStream. Close ();
WriteStream. Close ();

CodePudding user response:

Unable to download, tip need to download code, you put baidu network location

CodePudding user response:

Link: https://pan.baidu.com/s/1Ae5oAo4t7nyOIAEGZbBXnQ
The extracted code: 9958

Ok, first question in BBS, thanks to the great god help!

CodePudding user response:

reference 1/f, rabbit party - consultant reply:
can't download, tip need to download code, you put baidu network backup


Hello! Baidu network backup link have been posted
  •  Tags:  
  • C#
  • Related