Code Snippet posted by:
Shubham | Posted on: 8/1/2012 | Category:
ASP.NET Codes | Views: 564 | Status:
[Member] |
Points: 40
|
Alert Moderator
Use System.IO.File.WriteAllBytes
the following exmpl shows how to receive and save a file returned by a web method called GetLargeFile in a web service called MyService by using a WSE proxy obj called MyServicewse
//get data
byte[] fileData= MyServiceWse.GetLargeFile();
// save data
system.IO.File.WriteAllBytes(@"C:\LargeFile.jpg", fileData);
Thanks&Regards:-
Shubham Choudhary
Software Engineer
www.facebook.com/shubham.kunar
Found interesting? Add this to: