Could we send a compressed file (.zip) to server by web service?

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I have a compressed file in client.
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?

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.
 
What is WSE?
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.
 
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 .
 
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 .

That would that under water, the file's contents would be B64-encoded on the
client side and B64-decoded on the server side. That's a huge overhead...
 
My initinal purpose is that:
I have to transfer dataset to server by web service. The rows in the dataset
is so huge(over 8000 records)

Is it worth to compressed before transfer?
 

Ask a Question

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.

Ask a Question

Back
Top