Transfer File via WebService

  • Thread starter Thread starter Mark Irvine
  • Start date Start date
M

Mark Irvine

Hi,

I'm working on an application that needs to be able to transfer Excel files
from remote users (using tablet pc's) to a central server. Is it possible
to encode the Excel file in such a way so as to use web services to transfer
the file?

If not are there any other good solutions?

Any help would be appreciated,

Mark
 
FTP server can be used by user to upload a file to the server.

Web service approach can also be used, however if the file is big, you will
have to exted the web service contract ( methods that will accept chunked
file and append it to received part )

Also you can apload a file by means of HTTP
( http://www.4guysfromrolla.com/webtech/091201-1.shtml )
 
Well, as a cheapo answer you could expose a byte[] param on the web service?

And stop screaming everyone! I am (of course) talking about WSE3.0 with the
improved MTOM byte[] handling!
See
http://msdn.microsoft.com/library/d...html/90c91796-fbf9-4ea0-b5b7-6203561d0255.asp

That said, my current document management system simply upoads the file's
binary in a POST (suitably encoded), which I then retreive using a standard
(ashx) handler which reads the binary directly. Since I own both ends of
this (non-standard) channel, I also explicitely use the System.Compression
classes to transmit this as a GZIPd format to reduce bandwidth.

You could also look at the WebClient - this has an UploadFile method which
(I assume - never used) does a multi-part upload which you could obtain in
an aspx or ashx.

Any help?

Marc
 
Back
Top