capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

Base64 Code Not Sharing

Open hypesol opened this issue 1 year ago • 2 comments

Hi

I am using this plugin for sharing https://ionicframework.com/docs/native/share

Simple text and url is sharing well but I need to share Base64 image share. I am working on canvas based app and want to share that. But plugin is giving error whenever I tried to share the Base64 image.

hypesol avatar Aug 21 '23 07:08 hypesol

base64 sharing is not supported, only file:// urls are supported as documented on https://capacitorjs.com/docs/apis/share#shareoptions

As workaround you can use filesystem plugin to save the file and then share the url that writeFile returns.

I've added the type: feature request label to consider adding base64 sharing feature to the plugin.

jcesarmobile avatar Aug 21 '23 14:08 jcesarmobile

+1

nijakobius avatar Jan 12 '24 16:01 nijakobius