Hello all,
As mentioned in the WEB API documentation, I'm trying to send a pdf in base64 format from an external API/Postman.
However, when I try to open the pdf in an interface within the Document Viewer tag, it says - Failed to load document. I tried downloading and opening this document in my local pc, I get the same error.
When I'm using an online website to test the same base64 string to document conversion, it works.
Implementing a similar use case, wherein I'm calling the MSGRAPH GET ATTACHMENT (for a message) API with Appian integration that provides me document data in the form of base64 values. Appian is auto-converting these documents from its base64 format and storing it.
What am I missing over here? Is there a specific base64 format that Appian understands? Does the request body need additional parameters supporting the base64 string like name, size, content type?
Discussion posts and replies are publicly visible
Could you post here the http headers please?
Hi ,Here you go.
Seems correct..COuld you also post the definition of the web api?
Hello ,I actually found the issue. I do not have to convert the files into its base64, rather just use the 'binary' option under the BODY in Postman, upload the required file and voila, it worked. The same needs to be done in the code block at the external system's API endpoint. Highly appreciate your time and replies though. Cheers!