abcde
2008-04-22 19:50:04 UTC
Hi All,
Currently, I am working with a third party XML APIs which have the following
format:
http://address/someapi.xml?para1=xxx¶2=xxx...
Things goes fine until I try to update some binary data.
I used base64 to encryp the binary data( a jpg photo, lenth is 70608 bytes
after encrypt) and put those data into the url( that is what their document
said). after that the whole url lenth is over 70700 bytes long.
when I use HttpOpenRequest( handle, "POST", commandBuffer, ..) to send those
data to the server, I got an error, the error code is 122 which means "The
data area passed to a system call is too small.".
Is there anybody can tell me how to increase that data area, or is there a
alternative way to get this job done?
Thanks in advance
Currently, I am working with a third party XML APIs which have the following
format:
http://address/someapi.xml?para1=xxx¶2=xxx...
Things goes fine until I try to update some binary data.
I used base64 to encryp the binary data( a jpg photo, lenth is 70608 bytes
after encrypt) and put those data into the url( that is what their document
said). after that the whole url lenth is over 70700 bytes long.
when I use HttpOpenRequest( handle, "POST", commandBuffer, ..) to send those
data to the server, I got an error, the error code is 122 which means "The
data area passed to a system call is too small.".
Is there anybody can tell me how to increase that data area, or is there a
alternative way to get this job done?
Thanks in advance