Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert string to file angular

const base64 = '...';
const imageName = 'name.png';
const imageBlob = this.dataURItoBlob(base64);
const imageFile = new File([imageBlob], imageName, { type: 'image/png' });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #file #angular
ADD COMMENT
Topic
Name
9+5 =