How I Can convert type byte[] to ...... [modified]
-
I need convert byte[] to system.Drawing.Image This code Download Image from URI , i need put image in pictureBox after Downloaded . WebDownload webDL = new WebDownload(); byte[] downloadedData = webDL.Download(DownloadUrl, ProgressCallback ); CompleteCallback( downloadedData ); ImageDisplay ds = new ImageDisplay(); ds.pictureBox1.Image = (Image)downloadedData; help me ... -- modified at 2:00 Wednesday 9th August, 2006
-
I need convert byte[] to system.Drawing.Image This code Download Image from URI , i need put image in pictureBox after Downloaded . WebDownload webDL = new WebDownload(); byte[] downloadedData = webDL.Download(DownloadUrl, ProgressCallback ); CompleteCallback( downloadedData ); ImageDisplay ds = new ImageDisplay(); ds.pictureBox1.Image = (Image)downloadedData; help me ... -- modified at 2:00 Wednesday 9th August, 2006
-
How about this:
byte[] data = new byte[5] {1, 2, 3, 4, 5};
MemoryStream memoryStream = new MemoryStream(data);
Image img = Image.FromStream(memoryStream);