如何将Byte []值插入或存储到Excel中。 [英] How to Insert or Store Byte[] value into Excel.
本文介绍了如何将Byte []值插入或存储到Excel中。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨朋友,
我创建了web应用程序,在这个应用程序中有一部分插入byte [](图像byte []值)到excel表中使用DataTable(它有Byte [] Value)。所以任何人都可以建议我如何将DataTable Byte []值插入或存储到Excel工作表中。
先谢谢,
Mohan G
Hi Friends,
I created web application, in this application there is a part of insert byte[] (image byte[] value) in to excel sheet using DataTable (Its having Byte[] Value). so can any one suggest me how to insert or store the DataTable Byte[] value into Excel sheet.
Thanks in Advance,
Mohan G
推荐答案
您无法在Excel中存储二进制数组值direclty。您必须将它们转换为Excel可接受的格式。将数组值编码为base-64字符串。然后,您可以将其存储在Excel单元格中。
You cannot store binary array values direclty in Excel. You have to convert them to the format acceptable by Excel. Encode array values as base-64 string. Then you can store it in Excel cell.
这篇关于如何将Byte []值插入或存储到Excel中。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文