Apoorva_M | Posts: 5

Create package from base64 encoded file content

0 votes

I tried creating package using json body and sending file content as base64 encoded string but I get this error {"messageKey":"error.validation.sendPackage.noApprovals","message":"Cannot send package without approvals.","code":400,"name":"Validation Error"}.
I then tried sending file content as plain string and that worked. Is there a way I can send base64 encoded file content?  Any help would be appreciated. Thank you. 


Duo_Liang | Posts: 3776

Reply to: Create package from base64 encoded file content

0 votes

Hi Apoorva_M,

 

Thanks for your post! Unfortunately, OneSpan Sign doesn't support sending base64 encoded file content, you will have to first convert the base64 string to its binary format. And as you experienced, OneSpan Sign document engine also accepts simple text files (e.g. txt files) if you send plain text as form data value.

 

Duo


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off