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
- Images/Videos in storage appearing broke...
I am running into a storage issue after upgrading my self-hosted Appwrite instance , all of my previously uploaded images and videos are now showing as broken i...
- `project_id_missing` in Cloud Function w...
I've got a cloud function written in `Dart-3.12` that I'm trying to create a file in a file bucket. I'm using the latest `dart_appwrite` sdk (`26.1.0`) and App...
- Batch Size of Bulk Operations
Is there any way to increase the Batch Size of Bulk Operations on Appwrite Self Hosted? When I try to perform more than 100 operations per batch, I get the foll...