public static byte[] getFileContent(string fileUrl)
{
Stream stream1 = new FileStream(fileUrl, FileMode.Open, FileAccess.ReadWrite);
byte[] buffer1 = new byte[stream1.Length];
stream1.Read(buffer1, 0, (int) stream1.Length);
stream1.Close();
return buffer1;
}
No comments:
Post a Comment