S
shapper
Hello,
I am converting a variable, source, of type HttpPostedFileBase to
Byte[]:
Byte[] destination = new Byte[source.File.ContentLength];
source.File.InputStream.Read(destination, 0,
source.File.ContentLength);
return destination;
The destination length is the same as the source.
However, all the bytes in destination are 0.
Any idea what I might be doing wrong?
Thanks,
Miguel
I am converting a variable, source, of type HttpPostedFileBase to
Byte[]:
Byte[] destination = new Byte[source.File.ContentLength];
source.File.InputStream.Read(destination, 0,
source.File.ContentLength);
return destination;
The destination length is the same as the source.
However, all the bytes in destination are 0.
Any idea what I might be doing wrong?
Thanks,
Miguel