Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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);
  }
 
PREVIOUS NEXT
Tagged: #capacitor #file
ADD COMMENT
Topic
Name
1+5 =