
Hi there, I am trying to implement a function that stores a blob in the file system. Since my function is running on dart_appwrite 7.1.0 I have to convert the blob into a InputFile. How can I do that?

So basically the question is how to convert from blob into List<int>

blob? I don't recall there being any blob in dart π§ What's your code? where is your file coming from?

My File is coming from an Angular Web Frontend. The File can be send as Blob or File and I cannot wrap my head around it how I could handle these Inputs in my dart function.

Sorry, how is it getting into the dart function? how are you sending it from Angular?

Yes exactly. I am sending it from angular to the function.

Are you running on cloud? I don't really recommend sending a file as input to Appwrite function because data param is limited to 8k characters π§

No I am running locally. Ok the limit of 8k chars could be a problem. Seems like I first have to upload the files with the Storage API. Thanks @Steven !

[CLOSED] Convert blob into InputFile?
Recommended threads
- [Node.js SDK] Bypass 2GB file limit?
Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB Bucket limit etc. is setup corre...
- Function running in cloud but not locall...
Hi everyone, I have an appwrite function which is on python3.12 runtime. I have a library (hnswlib) which builds wheels during installation. This works on appwr...
- Permissions for bulk operation
Hi team, I have a question: βIn the databases.createDocuments bulk API, can I set document-level permissions? If yes, how exactly should I include the permissio...
