using (WebClient client = new WebClient()) { byte[] ByteStream = ConvertFileIntoBtes("c:\\test.jpg"); if (ByteStream != null) { client.Credentials = new System.Net.NetworkCredential(USERNAME, PASSWORD); client.UploadData(FTPSERVER + "/test.jpg", "STOR", ByteStream); } }
0 comments:
Post a Comment