tsteproT
Convex Community3y ago
10 replies
tstepro

Dealing with files

Hey there, this is what I'm trying to do.

1. Upload file to convex.
2. Upload that file to somewhere else (from convex).
3. ....
4. Profit

I'm running into problems with 2. I'm passing my stored blob to a node env where I have the sdk installed. I am then trying to convert that Blob into a File object. That's needed for the sdk. I keep running into the error:

Blob {"_parts":[{"_data":{"0":.... is not a supported Convex type To learn about Convex's supported types, see https://docs.convex.dev/using/types.


From the rest of the trace it seems like the Blob is a special type in convex? And it's converted into a json object? Not entirely sure.

For context, this is the api (https://platform.openai.com/docs/api-reference/audio/create-transcription) I'm trying to upload a blob to. I can probably work around this by manually calling this. But would rather use their sdk.

Any thoughts on how to make this happen?
Explore developer resources, tutorials, API docs, and dynamic examples to get the most out of OpenAI's platform.
Was this page helpful?