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();
|
请发表评论