DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
node.js - How do I convert an image to a base64-encoded data URL
var fs = require('fs'); var imageAsBase64 = fs.readFileSync('./your-image.png', 'base64');
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#How
#I
#convert
#image
#data
#URL
ADD COMMENT
Topic
COMMENT
Name
3+9 =
Submit