A
ad
I have a compressed file in client.
How could we send this compressed file (.zip) to server by web service?
How could we send this compressed file (.zip) to server by web service?
ad said:I have a compressed file in client.
How could we send this compressed file (.zip) to server by web service?
Martijn Saly said:You might wanna take a look at WSE... it allows for DIME requests which
supports binary attachments to a SOAP request/response, among other
things.
ad said:What is WSE?
Chris said:Any file can be sent as a byte array, so declare the Web service something
like this:
Public Sub UpLoadFile(ByVal FileBytes() As Byte, ByVal FileName As String)
Then on the client side, read the file into a byte array (use
IO.File.OpenRead) and call the Web service.
On the server side write the byte array to disk .
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.