[twsocket] POSTing images to a server

2006-08-30 Thread Mohit Sindhwani
Hi! I've just started to play with the Httpcli component and I'm hoping to create a program that will allow me to post images to a web application. The basic POST works now - I can submit data to a form. But, I can't begin to get my head around the things involved in posting images to the

Re: [twsocket] POSTing images to a server

2006-08-30 Thread Arno Garrels
Mohit Sindhwani wrote: The basic POST works now - I can submit data to a form. But, I can't begin to get my head around the things involved in posting images to the application. I understand that I need to post it as a multi-part form with a suitable separator for the parts, then set the

Re: [twsocket] POSTing images to a server

2006-08-30 Thread Mohit Sindhwani
Arno Garrels wrote: Mohit Sindhwani wrote: The basic POST works now - I can submit data to a form. But, I can't begin to get my head around the things involved in posting images to the application. I understand that I need to post it as a multi-part form with a suitable separator for

[twsocket] Documentation? (was - Re: POSTing images to a server)

2006-08-30 Thread Mohit Sindhwani
Hi, I'm looking at the source code for the example below, and just realized that there isn't a help file for the ICS. Is there any documentation reference that I could look at? I'm trying to understand, for example, the difference between Post and PostAsync and when to use which one. Thanks,

Re: [twsocket] Documentation? (was - Re: POSTing images to a server)

2006-08-30 Thread Marcelo Grossi
MethodName and MethodNameAsync have always the same difference. The first is a blocking procedure, the other one is not, wich means it uses its own Thread to do the processing. When using Post you will only be able to execute the next line of code (after Post) when the Post is actually

Re: [twsocket] Documentation? (was - Re: POSTing images to a server)

2006-08-30 Thread Mohit Sindhwani
Thanks Marcelo.. appreciate the explanation! However, still wondering if there is a document that explains it so that I'm not bothering you guys every time I hit a bump on the road :D Cheers Mohit. Marcelo Grossi wrote: MethodName and MethodNameAsync have always the same difference. The

Re: [twsocket] Documentation? (was - Re: POSTing images to a server)

2006-08-30 Thread Arno Garrels
Marcelo Grossi wrote: MethodName and MethodNameAsync have always the same difference. The first is a blocking procedure, the other one is not, wich means it uses its own Thread to do the processing. Asynchron behaviour is not achieved by using any additional thread!! Instead ICS uses non

Re: [twsocket] Documentation? (was - Re: POSTing images to a server)

2006-08-30 Thread Marcelo Grossi
DidnĀ“t know that! Winsock've always been a black box to me :) Thanks for the clarification, Marcelo Grossi Asynchron behaviour is not achieved by using any additional thread!! Instead ICS uses non blocking winsock API in combination with window messages. -- To unsubscribe or change your