Blob from file (iOS and android) #85
-
hey there! Wondering if anyone has advice on using the FilePicker (Ionic/Capacitor project) to pick a video file and then convert to a Blob for an upload using FormData. Tried converting to Base64 but larger files seem to crash so that's a bust. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
You need to read the picked file at the provided path using the Capacitor Filesystem plugin. This is what I posted about the topic the other day on the official Ionic Discord server:
|
Beta Was this translation helpful? Give feedback.
-
Oh wow - i was just reading that thread! haha Thanks for the info! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the convo @robingenz ! |
Beta Was this translation helpful? Give feedback.
You need to read the picked file at the provided path using the Capacitor Filesystem plugin.
But, as you said, this can lead to a crash.
This is what I posted about the topic the other day on the official Ionic Discord server: