Describe the problem/error/question
Hi everyone,
I’m trying to use n8n with the LINE Messaging API.
When a user sends an image, the Webhook is triggered correctly, but I cannot retrieve the image as binary data.
I was able to receive the request via Webhook, but when I try to get the binary data in a Code node, I only get "filesystem-v2".
What I actually want is to access the real content and then convert it to base64.
What is the error message (if any)?
Please share your workflow
Share the output returned by the last node
Code in JavaScript
//Get the binary data
const binaryData = items[0].binary.data.data;
// Convert to a Base64 string using Buffer
const base64 = Buffer.from(binaryData, 'binary').toString('base64');
// For debugging purposes (only the first 100 characters are displayed)
console.log("Base64 preview:", base64.substring(0, 100));
// Return as JSON
return [
{
json: {
base64Image: base64,
test : binaryData.substring(0,150)
}
}
];
Result
base64Image:ZmlsZXN5c3RlbS12Mg==
test:filesystem-v2
The expected behavior is to get the actual binary data content with items[0].binary.data.data;.
However, what I get instead is just "filesystem-v2".
Information on your n8n setup
- n8n version: 1.112.51
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
- Operating system: