Rashpal Singh
Members-
Posts
2 -
Joined
-
Last visited
Reputation
0 Neutral-
Thank you, Mark, Although now I found the solution also. As your solution suggest I need to remove the pdf extension from request Uri and I also need to change the base Uri to the Api request Uri, (as the one shown in image is not Api request Uri) After that I was able to get the bytes [] successfully. Accept Header I used for all my request has always been set to application/pdf Thank you for your help. Regards, Rashpal
- 2 replies
-
- attachments
- c sharp
-
(and 1 more)
Tagged with:
-
I am using v3.1 api and making the call to "sale_invoice/{id}.pdf" with headers "application/pdf". My target is to read the file bytes and save the filebytes to new file on blob storage but failing to do so. From debugging, I noticed that C# client is throwing 406: response (Not acceptable). Tried in postman and response was same again. I can view the file in chrome browser once user is logged in. I did not notice anything different in request header in comparison to Google chrome headers. PFA for the postman request. Regards,
- 2 replies
-
- attachments
- c sharp
-
(and 1 more)
Tagged with: