>Mike, most of VB6 examples can be translated to VFP, in this case in the examples shown, ADODB and MSXML are used, and both can be used in VFP too.
>
>Then, in the first of the links referenced, the example 2 uses again XMLHTTP:
>
>See at point: "2. http request object"
>
http://www.motobit.com/tips/detpg_post-binary-data-url/>
>I think that using the first example, the second and the comments about the parameters order, you can get it.
>
>Best regards.-
This looks almost exactly like I imagine it would be done:
Set xmlhttp = CreateObject("Msxml2.XMLHTTP.4.0")
UserName = ""
Password = ""
adoStream.Position = 0
xmlhttp.Open "POST", "
http://twitpic.com/api/uploadAndPost?username=" + UserName + "&password=" + Password + "&media=", False
xmlhttp.setRequestHeader "Content-Length", adoStream.Size
xmlhttp.setRequestHeader "Content-Type", "content=multipart/form-data"
xmlhttp.send adoStream.Read(adoStream.Size)
except that adoStream is doing what - FileToStr()?