471,354 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Transfer File via WebService

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
Jan 17 '06 #1
2 3616
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 )

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Mark Irvine" <ma*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

Jan 17 '06 #2
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/de...03561d0255.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
Jan 17 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Daniel | last post: by
16 posts views Thread by Lacka | last post: by
4 posts views Thread by Weston Weems | last post: by
5 posts views Thread by BobAchgill | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.