SocketSolutions
Oct 27th, 2000, 01:30 PM
I am trying to receive a large block of data, but
it never seams to be larger than 512bytes when
received.
Im working on a server that uses mswinsck.ocx, and
the client is passing a simple text file that has
a binary file embedded (attachment) in it using
Base64 (Or UU). The sent text document should
be at least 64K, since the attached graphic is at
least that large. However, when I open to write
the file or get a Len, what was received is only
512bytes. Ive never seen this happen before, maybe
I need to do something different?
This is just a snippit, but shows the general
operation:
winsock(index).ReceiveData
dim InBuffer as string
winsock(1).GetData InBuffer
open "c:\test.msg" for output as #1
print #1, InBUffer
Close #1
test.msg is only 512bytes, and also len(InBUffer)
returns 512!
Any ideas anyone? I need InBuffer to be a string,
since I will be doing some string manipulation
with it, I have to parse some headers from it, as
this is an NNTPd in development, and the newsgroup
the message belongs in, etc.. is in the message.
Thanks,
Andrew
it never seams to be larger than 512bytes when
received.
Im working on a server that uses mswinsck.ocx, and
the client is passing a simple text file that has
a binary file embedded (attachment) in it using
Base64 (Or UU). The sent text document should
be at least 64K, since the attached graphic is at
least that large. However, when I open to write
the file or get a Len, what was received is only
512bytes. Ive never seen this happen before, maybe
I need to do something different?
This is just a snippit, but shows the general
operation:
winsock(index).ReceiveData
dim InBuffer as string
winsock(1).GetData InBuffer
open "c:\test.msg" for output as #1
print #1, InBUffer
Close #1
test.msg is only 512bytes, and also len(InBUffer)
returns 512!
Any ideas anyone? I need InBuffer to be a string,
since I will be doing some string manipulation
with it, I have to parse some headers from it, as
this is an NNTPd in development, and the newsgroup
the message belongs in, etc.. is in the message.
Thanks,
Andrew