![]() |
|
|
|||||||
![]() |
ASP Net - Insert Byte Element into array of bytes |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I have following code that reads a binary file into array of bytes, after I
read the file i need to insert a space in fisrt element of array ,how can I achieve this System.IO.FileStream fs = new System.IO.FileStream(fileName,System.IO.FileMode.O pen,System.IO.FileAccess.Read); System.IO.BinaryReader br = new System.IO.BinaryReader(fs); byte [] sysFile = {0}; while(br.Read() > 0) { sysFile = br.ReadBytes(Convert.ToInt32(fs.Length)); } br.Close(); =?Utf-8?B?UmFlZCBTYXdhbGhh?= |
|
|
![]() |
| Thread Tools | Search this Thread |
|
|