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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...