Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Tue May 19, 2020 4:48 am

Can I load base64 excel file by spire.xls 10.3.8

setthawut1308
 
Posts: 1
Joined: Tue May 19, 2020 4:27 am

Tue May 19, 2020 6:13 am

Hello,

Thanks for your inquiry.
Please refer to the following code and download the latest Spire.XLS Pack(Hotfix) Version:10.4.9 for testing. If there is any misunderstanding or you encounter any problems during testing, please share your input file with us, then we will do further investigation.
Code: Select all
    string base64String = File.ReadAllText(base64File);
    MemoryStream ms = new MemoryStream(Convert.FromBase64String(base64String));
    Workbook wb = new Workbook();
    wb.LoadFromStream(ms);
    wb.SaveToFile("out.xlsx");


Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Wed May 27, 2020 10:13 am

Hello,

Hope you are doing well.
Have you tested the code I provided? Could you please give us some feedback at your convenience?
Thanks in advance.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.XLS