0.0.6 • Published 6 years ago
img2base v0.0.6
#Converts image to base64 code to store the image into the database and converts the base64 code into image back again
#For example var require = require('./img2base'); var basecreate = require.ImgtoBase64(pathtotheimage, 'file'); #converts the image named Zombatar_1.jpg into a base64 code and stores it in a file named 'file'
#For example var require = require('./img2base'); var base64toimg = new Base64toImg(pathtothefilewithbasecode, 'hello'); #converts the file named 'text' that contains the base64 code for an image/file and creates a image named 'hello' with base64 code