Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Blob from file (iOS and android) #85

Answered by robingenz
babycourageous asked this question in Q&A
Discussion options

You must be logged in to vote

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:

IMHO the perfect solution is to handle files completely native (upload/download/open/etc.) on Android and iOS. No Base64 etc. Capacitor gives you everything you need with convertFileSrc(...) and the possibility to write native code in the form of plugins. For example, I created a Capacitor Cloudinary plugin (https://github.com/capawesome-team/capacitor-cloudinary) for a client to upload and download files directly without going through the webview. We migrated his …

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by babycourageous
Comment options

You must be logged in to vote
1 reply
@robingenz
Comment options

Comment options

You must be logged in to vote
3 replies
@jayroyall
Comment options

@babycourageous
Comment options

@jayroyall
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants