A
Anil Gupte
I am using the following:
Dim fsReadStream As New FileStream(TextBoxVideoFileName.Text, FileMode.Open,
FileAccess.Read)
Dim brReader As New BinaryReader(fsReadStream)
Dim ByteArray() As Byte
ByteArray = brReader.ReadBytes(fsReadStream.Length)
This works fine for smaller files, but crashes with an overflow exception
with a large file (2.5GB). Is the size of the array a problem? How can I
change it? Any other solution?
Thanx,
Dim fsReadStream As New FileStream(TextBoxVideoFileName.Text, FileMode.Open,
FileAccess.Read)
Dim brReader As New BinaryReader(fsReadStream)
Dim ByteArray() As Byte
ByteArray = brReader.ReadBytes(fsReadStream.Length)
This works fine for smaller files, but crashes with an overflow exception
with a large file (2.5GB). Is the size of the array a problem? How can I
change it? Any other solution?
Thanx,