You can do this simpeler and platform independent
take the file as a binary stream , now encodebase64 this stream ( you gat
a string in return )
now pass this string to the other side , on the other side you can perform a
decodebas64 on the string and output it to a file
this way you can send anything you want over the wire ( executables , word
documents etc etc etc )
In my reallife situation i created a custom XML with a filename tag , a
description tag and a data tag ( the one containing the enocoded data )
this way the receiver does not have to guess the file name or type
regards
Michel Posseth [MCP]
"Josh Twist" <> schreef in bericht
news: oups.com...
> Hi Uzi,
>
> You could read all bytes and return it as a byte[] array or you could
> look at MTOM provided by MS in Web Service Extensions 3.0.
>
> http://msdn.microsoft.com/webservice...e/default.aspx
>
> Josh
> http://www.thejoyofcode.com/
>
> Uzi wrote:
>> Hi all,
>>
>> My web service does some work on a remote machine. A file is created on
>> the remote machine as a result of this work.
>> How do I return this file to the web service client on the local
>> machine?
>>
>> Thaks,
>>
>> Uzi
>