georgepatotk
Well-known member
Code:
Dim fstream As FileStream = File.OpenRead(ServerStoragePath & "/" & filepath)
Dim bytedata() As Byte
bytedata = New Byte(fstream.Length) {}
fstream.Read(bytedata, 0, bytedata.Length)
fstream.Close()
networkStream.Write(bytedata, 0, bytedata.Length)
The above code is to send a file across the network.
I have a problem where small file is able to be sent but large file will generate error.
The error message is :
Code:
An unhandled exception of type System.IO.IOException occurred in system.dll
Additional information: Unable to write data to the transport connection.
Could u please tell me what is the problem actually?
George Low