Byte [] FileByteArraynewbyte [FileLength]; temporary storage of Byte array StreamStreamObjectUpFile for image files. inputStream; creates a data stream to read image file data. FileByteArray is the data storage body, 0 is the Data Pointer position, and filelne is the Data Length StreamObject. rea
Byte [] FileByteArray = new byte [FileLength]; // temporary storage of Byte Arrays for image files // Stream StreamObject = UpFile. inputStream; // set up a data stream to the image. /// read the image file data. FileByteArray is the data storage body, 0 is the Data Pointer position, and filelne.pdf is the data length. // StreamObject. rea
Byte [] FileByteArray = new byte [FileLength]; // temporary storage of Byte Arrays for image files
// Stream StreamObject = UpFile. InputStream; // create a data Stream object
//// Read image file data. FileByteArray is the data storage body, 0 is the Data Pointer position, and filelne is the data length.
// StreamObject. Read (FileByteArray, 0, FileLength );
// StreamObject = null;
FileStream fs = new FileStream (FullFilePath, FileMode. OpenOrCreate );
BinaryReader rs = new BinaryReader (fs );
FileByteArray = rs. ReadBytes (Convert. ToInt32 (fs. Length ));
Rs. Close ();
Rs = null;
Fs. Close ();
Fs = null;
TheNewFile. CONTENT = FileByteArray;