Problem converting profile image taken from Evolution to base64

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:, 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.