Skip to main content
Participant
Dec 16, 2020 3:35 AM UTC
Question

transientDocuments with base64 pdf input

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 

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

Participating Frequently
Mar 18, 2021 10:36 PM UTC

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.

Translate
Mar 19, 2021 2:48 AM UTC

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

Translate
Participating Frequently
Mar 19, 2021 2:04 PM UTC

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. 

Translate