0

I have implemented the following method:

var client = new RestClient(string.Format(url, ponumber));
        var response = client.Get(
            new RestRequest(Method.GET)
                .AddHeader("accept", "application/json")
                .AddHeader("content-type", "application/json")
                .AddHeader("authorization", string.Format("Bearer {0}", myToken))
            );

The response is in Format "application/pdf". How can i convert that response to a PDF-File?

phuzi
  • 12,078
  • 3
  • 26
  • 50
Sascha Manns
  • 2,331
  • 2
  • 14
  • 21

0 Answers0