Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert data image url into an image file

const blob = await fetch(dataURL).then(it => it.blob());
const file = new File([blob], 'fileName.jpg', {type:"image/jpeg", lastModified:new Date()});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #data #image #url #image #file
ADD COMMENT
Topic
Name
5+1 =