Copy link to clipboard
Copied
Hi ,
I am trying to post pdf document from base64 input in groovy scripting . i could not achive this either i get a blank documnent or a document with base64 string as content or error in upload or bad request . I tried multiple ways need some help when we deal with base64 string how the payload should look like to post call . Any help or suggestion would be a great help .
https://api.eu1.adobesign.com/api/rest/v6/transientDocuments
Regards
Vijay
Copy link to clipboard
Copied
Hi Vijay,
Did you resolve this ? We have a similar requirement to send base64 encoded PDF to create the transient document.But when I sent base64 to the POST transientdocument API, it always returns a document upload error in AdobeSign.
Thanks
Swapna.
Copy link to clipboard
Copied
hi swapa ,
Yes we could able to resolve the issue by refereing to this git repo.
https://github.com/adobe-sign/rest-api-sample/tree/master/v6/adobesign/api/rest/sample/util
Let ne know if this helps .
Regards
Vijay
Copy link to clipboard
Copied
Hi Vijay,
Thanks. I was working on SAP ABAP.
I was setting the base64 encoded string as the multi-part body but I had to additionally set the header 'Content-Transfer-Encoding' as 'base64' at the multipart similar to how I was setting the Content Disposition. This seems to be now working.
Appreciate the help!
Thanks
Swaps.
Copy link to clipboard
Copied
Hi Swaps.
I also am working with SAP ABAP and I have the same issue you had before but when I set the additionally header field 'Content-Transfer-Encoding' as 'base64', the error remains.
The steps I follow are:
- I generate PDF from a smartform and via function CONVERT_OTF_2_PDF
- Then I call SCMS_BINARY_TO_XSTRING
- Afterthat I call SCMS_BASE64_ENCODE_STR
I would appreciate your help!
Thanks!.
Juan
Copy link to clipboard
Copied
Your uploading a pdf file or sending pdf file in conveted to stream format?