Hello,
I have upload the .JSON file in FTP server but system return the error.
error is 'A call to System.Net.FtpWebRequest.GetRequestStream failed with this message: The requested URI is invalid for this FTP command.'
what is the reason behind this.
Please reply asap.
thanks
0
Answers
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
UploadJSon('API Path','userid','Password',Json) //Json is the .net variable store a json file
UploadJSon(WebServiceURL : Text;UserName : Text;Password : Text;VAR String : DotNet "System.String")
CreateWebRequest(HttpWebRequest,WebServiceURL,'POST');
CreateCredentials(HttpWebRequest,UserName,Password);
SetRequestStream(HttpWebRequest,String);
DoWebRequest(HttpWebRequest,HttpWebResponse,'');
GetResponseStream(HttpWebResponse,String);
i have an issue in this function
SetRequestStream(HttpWebRequest,String);
StreamWriter := StreamWriter.StreamWriter(HttpWebRequest.GetRequestStream,Encoding.GetEncoding('ISO-8859-1')); // i have also use' UTF-8'
StreamWriter.Write(String);
StreamWriter.Close;
bold line has an error.