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
- Dotnet functions on cloud
I'm trying to deploy my .Net8 functions to my project on cloud.appwrite through the CLI. I'm getting this error.
- TablesDB can't be used in Appwrite Funct...
I have written a function (DART) and it won't deploy. Here is what I get : 2026-03-14T17:09:41.459693680Z Compiling ... 2026-03-14T17:09:42.915619217Z ../build...
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...