KelechiKelechi
8 years agoQrew Trainee
Upload base64 PDF File Attachment using API
I am having issue with uploading a PDF file attachment using quickbase API.
I have already converted the PDF File to base 64. After the record gets updated in quickbase, I get an error whenever i try to download the file.
Sample API Call
Headers:
Content-Type: application/xml
QUICKBASE-ACTION: API_EditRecord
Body:
<qdbapi>
<apptoken>app_token</apptoken>
<ticket>ticket</ticket>
<rid>30</rid>
<field fid="80" filename="test.pdf">
BASE 64 ENCODED STRING OF THE PDF FILE
</field>
</qdbapi>
What is wrong with base64 for PDF file attachments in quickbase using the API or are there specific files that quickbase can be able to decode correctly.
Or if there is another alternative approach. Thanks
FYI, I am currently using a Restlet Client - REST API Testing to do the testing to ensure the api works well, before diving in to code in any language
I have already converted the PDF File to base 64. After the record gets updated in quickbase, I get an error whenever i try to download the file.
Sample API Call
Headers:
Content-Type: application/xml
QUICKBASE-ACTION: API_EditRecord
Body:
<qdbapi>
<apptoken>app_token</apptoken>
<ticket>ticket</ticket>
<rid>30</rid>
<field fid="80" filename="test.pdf">
BASE 64 ENCODED STRING OF THE PDF FILE
</field>
</qdbapi>
What is wrong with base64 for PDF file attachments in quickbase using the API or are there specific files that quickbase can be able to decode correctly.
Or if there is another alternative approach. Thanks
FYI, I am currently using a Restlet Client - REST API Testing to do the testing to ensure the api works well, before diving in to code in any language