C#中将图片文件存至数组
 String SourceLoc  = "D:/Images/photo.jpg";
String SourceLoc  = "D:/Images/photo.jpg"; String DestinationLoc = "D:/Images/TestImage.jpg";
String DestinationLoc = "D:/Images/TestImage.jpg";
 FileStream fs = new FileStream(SourceLoc, FileMode.Open,FileAccess.Read);
FileStream fs = new FileStream(SourceLoc, FileMode.Open,FileAccess.Read); byte[] ImageData = new byte[fs.Length];
byte[] ImageData = new byte[fs.Length]; fs.Read(ImageData,0,System.Convert.ToInt32(fs.Length));
fs.Read(ImageData,0,System.Convert.ToInt32(fs.Length)); fs.Close();
fs.Close(); 
                    
                     
                    
                 
                    
                 
                
            
         
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号