hi,
Try this if could help:
try
{
Byte[] imgByte = null;
FileUpload img = (FileUpload)Upload(fileToUpload1)
if (img.HasFile && img.PostedFile != null)
{
HttpPostedFile file = img.PostedFile;
imgByte = new Byte[file.ContentLength];
file.InputStream.Read(imgByte, 0, file.ContentLength);
originalSize = file.ContentLength;
}
}
catch
{
}
}
Please do not forget to vote if could help so that others may consider as answer...
Regards,