capacitor base64 to file code example
Example 1: capacitor base64 to file
try {
Filesystem.writeFile({
path: `test1/${fileTo.name}`,
data: base64String,
directory: FilesystemDirectory.Documents
});
} catch (e) {
console.error("Unable to write file", e);
}
Example 2: capacitor base64 to file
try {
Filesystem.writeFile({
path: `test1/${fileTo.name}`,
data: base64String,
directory: FilesystemDirectory.Documents
});
} catch (e) {
console.error("Unable to write file", e);
}