Issue with the Google Drive Download node

I am working on a workflow that downloads PDFs from Google Drive and then converts them to base64 PDFs. From there I am using OCR.space to scrape the PDF for certain data. The issue I am having is that the google drive download node is not generating the base64. I have confirmed all of the setup is correct (I have used Grok to assist). I could use some help as I am not sure what else to try. I am happy to share whatever someone may need but I am not quite sure what questions you may. Thanks in advance for any help.

Does your workflow (the portion before you upload the encoded file to OCR.space) look something like this?

it is missing the extract from file. It goes from download PDF to the OCR node. according to Grok :slight_smile: the download file node is supposed to download as a base64, I am guessing that is not right?

The “Download file” gets the binary, “Extract from File” makes the binary into a base64 string.

Nope, download file node not downloading it as a base64, it’s download as is the file type a.k.a binary file, not base64.
If you want to convert it into base64, you must convert it, as what @jabbson do

My bad, I misspoke. it is binary, however no matter how I structure the node, I am only getting metadata. There is no binary data in the JSON. I have tested this with a known PDF (to ensure I am not bringing in a bad file) I still get the same result. I have also confirmed I am using the latest google drive download node. Here is the code.

{
“nodes”: [
{
“parameters”: {
“operation”: “download”,
“fileId”: {
“__rl”: true,
“value”: “1XqcXOszNY2R1Nc7bmbYJidbR1kWwVm-x”,
“mode”: “id”
},
“options”: {
“binaryPropertyName”: “pdfdata”
}
},
“name”: “Download PDF”,
“type”: “n8n-nodes-base.googleDrive”,
“typeVersion”: 3,
“position”: [
-1080,
-300
],
“id”: “64d67d04-a498-43c4-ae57-8fd0275100d4”,
“credentials”: {
“googleDriveOAuth2Api”: {
“id”: “9QvEECAmnb4JlMY4”,
“name”: “Google Drive account”
}
}
}
],
“connections”: {
“Download PDF”: {
“main”: [

]
}
},
“pinData”: {},
“meta”: {
“instanceId”: “252fda49359c425dc7f4dd1ac7549dd40005c8cfc8bbf38876a10b31989f12fb”
}
}

I have corrected my workflow to match this.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.