Hi
i am new to this i have a requirement to compress .xlsx files into .zip and sending this to mail. .xlsx file sending to email is done but i don't know how to compress this as .zip file. thanks plz help....
pls lookinto this;;;;
attachements.push(...[report.emailParts.XLSX].filter(a=>a).map((xlsx) => {
let out_file_name = "";
let a=[];
try {
out_file_name = out_file_pattern_to_name(
report.parts[0].outfile_pattern || outfile_pattern,
{Name: report.parts[0].Name || name});
} catch (e) {
console.dir(e);
process.exit(1);
}
return {
filename:out_file_name + '.xlsx' ,
content: new Buffer(xlsx, 'base64')
}
}));
Hi
i am new to this i have a requirement to compress .xlsx files into .zip and sending this to mail. .xlsx file sending to email is done but i don't know how to compress this as .zip file. thanks plz help....
pls lookinto this;;;;