It's similar to sending it from the web service to the client. Make sure
you modify the proxy class so that it derives from
Microsoft.Web.Services.WebServicesClientProtocol.
Client:
// Create instance of web service
wsUpload = new WSUpload.WSUpload();
// Create attachment from posted file stream
DimeAttachment da = new DimeAttachment("plain/text; charset=
utf-8",
TypeFormatEnum.MediaType,
hifUpload.PostedFile.InputStream);
// Add it and send it to the server
wsUpload.RequestSoapContext.Attachments.Add(da);
wsUpload.TransferFile();
Server:
// Get the stream and do something with it
StreamReader sr = new StreamReader(
HttpSoapContext.RequestContext.Attachments[0].Stream);
> hi,
> I need to write an application which needs to transfer
[quoted text clipped - 10 lines]
> Thanks
> sendhil
Scott McFadden - 08 Oct 2003 17:22 GMT
When I tested the DIME sample app it was more than twice as slow as just
sending a regular Soap based64 encode byte array. DIME is not ready for
prime time yet.
scottm
> It's similar to sending it from the web service to the client. Make sure
> you modify the proxy class so that it derives from
[quoted text clipped - 34 lines]
> > Thanks
> > sendhil