Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [WebMethod]
- public string UploadFile(byte[] f, string fileName)
- {
- try
- {
- MemoryStream ms = new MemoryStream(f);
- FileStream fs = new FileStream("http://103.16.141.197/ProBuildIndia/Operator/Sample/" + fileName, FileMode.Create);
- ms.WriteTo(fs);
- ms.Close();
- fs.Close();
- fs.Dispose();
- return "OK";
- }
- catch (Exception ex)
- {
- return ex.Message.ToString();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement