Claus,
Before you roll your own code, look into the new file transfer protocol
built in to WSE 3.0. It uses a new optimized file transfer technique
called MTOM, this is not the same as the DIME attachment process in
previous versions of WSE. I'm not sure if there are file size
limitations, but it's worth investigating. There is a quickstart
example installed with WSE 3.0 that goes over the implementation
details.
I've used DimeAttachments in previous versions of WSE, and the MTOM
design is much more elegant, by a long shot! In a nutshell, whenever
you use a webmethod paramater, or return value of byte[], you are
executing a file transfer under the covers.
--steve
Julie Lerman - 03 Dec 2005 15:17 GMT
not only that, but the transfer is much more efficient - much smaller on the
wire.
You can also combine this with file compression. Pre-VS2005, I have been
using Xceed's Streaming Compression library to compress data returned by a
web service. VS2005 now has file compression in the System.IO namespace.
julie lerman
> Claus,
>
[quoted text clipped - 12 lines]
>
> --steve