I have tried every possible solution given on the website.
Private Byte [] GetBinaryFile () {stream fs = FileUpload1.PostedFile.InputStream; Binaryreader BR = new binary reader (FS); Byte [] bytes = br.ReadBytes ((Int32) fs.Length); Return bytes; }
This was what I was trying to read from the fileuploader which was not working. Then I changed the idea that I had uploaded the file to the server first and then I was trying to read, but again I made the mistake of the system. Byte () The thing is that the byte format of PDF does not return, but it works perfectly on my local system, does it have nothing to do with the server?
You can try: -
byte [] Bytes = new byte [FileUpload1.PostedFile.ContentLength]; Bytes = file uploads 1 .Filebite;
No comments:
Post a Comment