Did the return type from this function get changed? I referenced an older project of mine and this returns a URL to the generated preview.
I am using NextJS with a server-side API that serves this URL. Now that it is an ArrayBuffer (or I am doing something wrong with it to become as such), what's the neatest way to serve it to my client apps?
The console log of my awaited output:
{
fileUrl: ArrayBuffer {
[Uint8Contents]: <ff d8 ff e0 00 10 4a 46 49 46 00 01 01 01 00 00 00 00 00 00 ff fe 00 25 43 72 65 61 74 65 64 20 62 79 20 66 43 6f 64 65 72 20 47 72 61 70 68 69 63 20 50 72 6f 63 65 73 73 6f 72 ff db 00 43 00 06 04 05 06 05 04 06 06 05 06 07 07 06 08 0a 10 0a 0a 09 09 0a 14 0e 0f 0c 10 17 14 18 18 17 14 16 16 1a 1d ... 35663 more bytes>,
byteLength: 35763
}
}
PS I didnt forget to format my code this time 🙂
Recommended threads
- Need help to create a wrapper which let ...
I’m looking for help setting up Appwrite properly on a VPS so I can build a self-hosting wrapper around it. The goal is to provide a Linux executable that allow...
- Create file is listing files instead of ...
This is a bit strange but, I cannot create files from within a funcion. I have tested with latest SDKs versions of node and python, both instead of creating the...
- Trouble Creating Database and Collection...
I’ve set up my project credentials (endpoint, project ID) and generated an API key. I’m currently focusing on creating only the database and collections (tables...