Would like to be able to upload this file as ascii on the iseries instead of it coming in as binary. is there a way to do this?
public static void SendFile(string sourcePath, string server, string userName, string password, string remoteFolder, string remoteFileName)
{
using (WebClient client = new WebClient())
{
string dest = string.Format(CultureInfo.InvariantCulture, "ftp://{0}/{1}/{2}", server, remoteFolder, remoteFileName);
client.Credentials = new NetworkCredential(userName, password);
client.Proxy = null;
//client.Encoding = Encoding.UTF8;
client.UploadFile(dest, "STOR", sourcePath);
}
}
What I have tried:
tried looking at Encoding but not much success.