1
Answer

Firstly we converted return byte code to string and now want to true

Photo of Rajeev Kumar

Rajeev Kumar

1y
525
1

Firstly we converted return byte code to string and now want to true or false on behalf oh returning string content .But it giving an error string was not recognized as a valid boolean. here we declare bool Result=false and after that -

and byte code coming in OutData. and after that  this code as following- 

_EmailRequest.requestDataId = js.Serialize(objDic);
???????_EmailRequest.AppHostUrl = _AppConfigManager.AppHostUrl;
_EmailRequest.moduleId = ModuleOption.Invoice;
OutData = GetMail(_EmailRequest, out Result);
string content = Encoding.UTF8.GetString(OutData, 0,OutData.Length);
Result = Convert.ToBoolean(content);

Answers (1)