C#中将图片文件存至数组

String SourceLoc  = "D:/Images/photo.jpg";
String DestinationLoc 
= "D:/Images/TestImage.jpg";

FileStream fs 
= new FileStream(SourceLoc, FileMode.Open,FileAccess.Read);
byte[] ImageData = new byte[fs.Length];
fs.Read(ImageData,
0,System.Convert.ToInt32(fs.Length));
fs.Close();
原文地址:https://www.cnblogs.com/wjhx/p/459310.html