- Kevin Ridley
- PowerBuilder
- Friday, 24 May 2019 01:30 PM UTC
I'm calling a REST web service with PB2017 R3 using the OAuthClient to upload a file. The service is very poorly documented, and only shows an HTTP example. I've been able to use the example and get a file uploaded, but we cannot open or preview the file when it's uploaded. I believe the issue is the charset of the data stream (blob) I'm sending in the body of the request. It's a multi-part request, and the data portion shows: Content-Type: application/octet-stream; charset=ISO-8859-1. I've tried sending it as UTF-8 encoding, but that seems to be an issue. As I mentioned, the file uploads, but it's not right. I've tried changing the Content-Type parm to UTF-8, but that doesn't work either. Any thoughts on encoding a blob to ISO-8859-1?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.