excel4node icon indicating copy to clipboard operation
excel4node copied to clipboard

base64 images

Open spyshow opened this issue 9 years ago • 1 comments

Hii all

is there any way to add an base64 string images rather than giving the path to it ???

spyshow avatar Dec 22 '16 17:12 spyshow

const base64 = string.replace(/^data:image\/jpeg;base64,/, ''); const buff = Buffer.from(base64, 'base64'); And then instead of "path" specify "image" with the "buff" constant.

mscoobby avatar Feb 18 '19 11:02 mscoobby