You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously I tried using the excel file writing method. Works fine, but as the data grows so does the memory consumption. Hence the changing of writing method to streaming method.
Tried doing this on WorkbookWriter
var sheet = workbook.addWorksheet('Data');
var base64Data = req.body.img.toString().replace(/^data:image\/png;base64,/, "");
fs.writeFile('Tagihan/img.png', base64Data, 'base64', function(err) {
console.log(err);
})
var img1 = workbook.addImage({
filename: 'Tagihan/img.png',
extension: 'png'
});
sheet.addImage(img1, 'A1: H25');
got this error
TypeError: workbook.addImage is not a function
GTKSKY2014, outrightlie, OwnageIsMagic, ritesh-nitw and chdh