How do I convert Json files into binary data for the OpenAI Transcribe node

The questions asked didn’t solve my problem, so I’m asking my own.
I want to use the Telegram Get Node to convert an image file into a binary file so that it can be processed by the OpenAI Transcriber. However, I can’t find the right way to do it. I came across the Convert to File Node, but now I’m stuck.

Describe the problem/error/question

###Cannot read properties of undefined (reading ‘split’)
###i want convert the Json data what i get by the previous node in to binary data, that the OpenAi transcriber node can analyze that.

What is the error message (if any)?

###Cannot read properties of undefined (reading ‘split’)

Please share your workflow

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:

Here you go.

Convert the mimetype

2 Likes

Is it also possible to leave out the Telegram get the file node and bind the code node directly to the Telegram trigger node? i mean i saw that in one video.

Yes, can be done. You can use HTTP Request node to get the file.

2 Likes

Hey, saw your suggestion about use of MIME node. How does tis node function and what it is good for? How do you use it, I mean in which situations?

1 Like

Hi, it’s a code node, that helps to transform file MIME type.
Basically, we are setting the file type manually.

1 Like

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