I created a webhook for typebot, I get the phone number from typebot, I send it to n8n via webhook, I make the request in evolution, I receive it as a link, I convert it to base64 and send it back to typebot, but there are some images that are coming in .enc format that are giving an error, for example this image here gives an error when converting: https://pps.whatsapp.net/v/t61.24694-24/124286881_2216079548536672_7423315598849550757_n.jpg?ccb=11-4&oh=01_AdSDEsCDzUctX_41nOXLUBP5kr9cm8fYzbDOHbBAcdoGMw&oe=6581F0AB&_nc_sid=e6ed6c&_nc_cat=101, I would like a solution to solve this problem and convert all the right images!
It looks like your topic is missing some important information. Could you provide the following if applicable.
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system:
Hi @Breno_Honorio, welcome to the community! I am sorry you’re having trouble.
Converting an image file to a base64 string can be done without writing custom code, for example like so:
This approach also works with your example URL, both test images can be decoded as expected using this service for example after running the above workflow on n8n 1.20.0 using n8n cloud.
Perhaps you want to give the Convert to/from binary data node a go and see how it goes?
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.