Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to upload binary file to webservice?

Status
Not open for further replies.

codefinger

Programmer
Feb 2, 2002
14
US
I am trying to write a webservice that will be called from a VB6 program using something like:

xSendParms = "iBinStream=" & iBinStream & "&"
xSendParms = xSendParms & "iDirectory=" & iDirectory & "&"
xSendParms = xSendParms & "iName=" & iName & "&"
xSendParms = xSendParms & "iOverwrite=" & iOverwrite & "&"
xSendParms = xSendParms & "iOptions=" & iOptions

'>>> Call web service and pass its parameters
xXMLHTTP.send xSendParms

Among the items being passed is a binary file which was decoded into an XML string value.

Questions:

Is this approach the best and fastest way to pass a binary file to a web service? Or is there some way to pass an ado stream object instead?

Assuming XML decoded is the way to go, how do I reassemble the string value into a binary file once it arrives at the web service? I have been looking at various readers and writers, but so far I have been unable to find a
reader that can take a string value as a parameter and return a file stream object.

Any and all help would be greatly appreciated. Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top