Convert pdf file received in string variable to byte array in C#

后端 未结 1 1068
孤街浪徒
孤街浪徒 2021-01-25 08:28

I am trying to develop an application in C# which takes data from Service1(3rd party), processes it and then sends data to Service2(again 3rd party).

The data I am tryin

相关标签:
1条回答
  • 2021-01-25 08:38

    I just found that it was not Service1 which was sending data in string format, it's just I was using IRestResponse.Content, a string variable from RestSharp instead of using IRestResponse.RawBytes, a byte[] variable.

    0 讨论(0)
提交回复
热议问题