|
-
Jul 17th, 2006, 03:14 PM
#11
New Member
Re: Winsock: HTTP File Upload
 Originally Posted by visualAd
What do you mean? It uses the multipart/form-data header in the HTTP request and sends the HTTP request as a multipart document.
Yes sorry, just notice that in the code, I got confused when see this:
VB Code:
' Content-Disposition: form-data; name="UploadName"; filename="FileName"
Later I see this:
VB Code:
' Content-Type: multipart-form-data, boundary=boundary
 Originally Posted by visualAd
I am not sure probably the size of a VB string 64k. However, with anything bigger, VB should use swap or other mechanisms to handle the string. I am no VB guru so cannot say for sure.in the HTTP request and sends the HTTP request as a multipart document.
Ok, lets say I want to send a 500KBs file, supossing that limit is 64KB, I should use a string class or there's a way to send chunks of data at time?
 Originally Posted by visualAd
In theory the ocx should be included. If not, you need to ensure that the control is installed on the OS you are running the program on and hope that if it is installed the version is compatible withh the one you've used.
Winsock is included by default from windows 98+, so I would imagain you'd be quite safe.
So it will be ok for most cases to do it with winsock.ocx rather than directly calls to winsock.dll?
 Originally Posted by visualAd
I should hope so, as this is exaclty what the Winsock control is a wrapper for 
Thanks.
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
|