原創(chuàng)|使用教程|編輯:何躍|2021-11-29 12:01:49.843|閱讀 213 次
概述:
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
private static byte[] StreamToByteArray(Stream input) { byte[] buffer = new byte[16 * 1024]; using (MemoryStream ms = new MemoryStream()) { int read; while ((read = input.Read(buffer, 0, buffer.Length)) > 0) { ms.Write(buffer, 0, read); } return ms.ToArray(); } }
在SoftekBarcode中您可以用以下代碼實現(xiàn):
SoftekBarcodeNet.BarcodeReader barcode = new SoftekBarcodeNet.BarcodeReader(); byte[] data = StreamToByteArray(s); int nBarCodes = barcode.ScanBarCodeFromByteArray(data)。
本站文章除注明轉載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn