|
-
Mar 12th, 2000, 10:28 AM
#1
Thread Starter
Junior Member
how do i send a large file (more than 64k) via winsock?
-
Mar 13th, 2000, 05:25 PM
#2
Fanatic Member
open the file into a byte array
dim bytes()
redim bytes(filelen("c:\test.txt")
'after connecting etc
winsock.senddata bytes
Then to recieve ... (append arrived data to a file)
Private Sub wsTCP_DataArrival(Index As Integer, ByVal bytesTotal As Long)
Dim buffer() As Byte
wsTCP(1).GetData buffer
Put #1, lPos, buffer
lPos = lPos + UBound(buffer) + 1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|