cancel
Showing results for 
Search instead for 
Did you mean: 

How to download an excel base64 content in file format using Desktop studio.

former_member670464
Participant

Hi,

I am unable to download an excel Base64 content in file format(.xlsx) in desktop studio.

I tried this way:

'window.location.href = data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64 + "Base64String"';

Could you please guide me if anybody knows..

Thanks in Advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Jerome
Advisor
Advisor

Hello,

Try this :

var stream = ctx.base64.decodeStream(encodedExcel);
ctx.fso.file.write(ctx.options.path.log + '\\myexcelfile.xlsx', stream, e.file.encoding.Binary);

Regards,

J.