Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodejs read image as base64

const fs = require('fs').promises;
const contents = await fs.readFile('/path/to/file.jpg', {encoding: 'base64'});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nodejs #read #image
ADD COMMENT
Topic
Name
1+6 =