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
- Error getting preview of file
Rest Response: ``` { "message": "Server Error", "code": 500, "type": "general_unknown", "version": "1.8.1" } ``` Appwrite Logs ``` appwrite ...
- Storage images using custom domain retur...
Some of the images uploaded to my storage bucket returns this error: ``` { "message": "Project with the requested ID could not be found. Please check the value...
- Bandwidth limit for your organization ha...
I received an alert that I exceeded the Free plan bandwidth limit (showing 5.86 GB), but my dashboard tells a different story. The usage stats there are much lo...