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
- Storage files aren’t showing on mobile
hi, what can be the problem? i have a storage and there are images in it, the permissions are read for All Users, everything is fine on desktop, but on mobile t...
- Delete storage files all at once
I am using Appwrite Cloud. I want to delete all storage files in my bucket similar to how I can select all documents in a collection and delete them all at once...
- Storage images are not showing on mobile
Hi, can anyone help me? I have some images on the storage, and it is not shown on mobile, on desktop everything is fine.