Hi All,
I need to convert Excel file to FileInputStream for send Excel file via API.
Best,
Rajkumar
Hi All,
I need to convert Excel file to FileInputStream for send Excel file via API.
Best,
Rajkumar
kindly help this request
Hi,
Can you check or share specification of the API?
If it’s web api, it’s mostly multipart/form-data, base64 text or octet-stream.
Regards,
Konbanwa @Yoichi san,
Thank you for your response, I got deferent way of solution.
fileName(String)= “D:\Folder\Test.xlsx”
bytes(byte[ ])= File.ReadAllBytes(fileName)
encodedString(String)= Convert.ToBase64String(bytes)
Thanks again
Best,
Rajkumar
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.