Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodejs read image as base64

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