ZXing一维码/二维码使用文档

上传者: zdh123 | 上传时间: 2019-12-21 22:17:08 | 文件大小: 25.56MB | 文件类型: zip
ZXing一维码/二维码 使用文档 样例: System.IO.Stream stmYiWei = new System.IO.MemoryStream(); BitMatrix byteMatrix = new MultiFormatWriter().encode(sCode, BarcodeFormat.CODE_39, 230, 40); toBitmap(byteMatrix).Save(stmYiWei, ImageFormat.Bmp); Byte[] byteYiWei = new byte[stmYiWei.Length]; stmYiWei.Position = 0; stmYiWei.Read(byteYiWei, 0, (int)stmYiWei.Length); //将图片文件流保存为二进制文件以便保存到数据库中 System.IO.Stream stmErWei = new System.IO.MemoryStream(); IDictionary hints = new Dictionary(); hints.Add(EncodeHintType.CHARACTER_SET, "UTF-8"); byteMatrix = new MultiFormatWriter().encode(sTmp, BarcodeFormat.QR_CODE, 200, 200, hints); toBitmap(byteMatrix).Save(stmErWei, ImageFormat.Bmp); Byte[] byteErWei = new byte[stmErWei.Length]; stmErWei.Position = 0; stmErWei.Read(byteErWei, 0, (int)stmErWei.Length); //将图片文件流保存为二进制文件以便保存到数据库中 strSQL = "insert into gdzc_biaoqian( bq_gd_no,bq_yiweima,bq_erweima,bq_us_no) values("; strSQL = strSQL + " @bq_gd_no,@bq_yiweima,@bq_erweima,@bq_us_no)"; SqlCommand commandImage = new SqlCommand(strSQL, connectionImage); commandImage.Parameters.Clear(); commandImage.Parameters.Add("@bq_gd_no", SqlDbType.Int).Value = Convert.ToInt32(sGdzcNo); commandImage.Parameters.Add("@bq_yiweima", SqlDbType.Image).Value = byteYiWei; commandImage.Parameters.Add("@bq_erweima", SqlDbType.Image).Value = byteErWei; commandImage.Parameters.Add("@bq_us_no", SqlDbType.Int).Value = Convert.ToInt32(Session["LoginUserID"]); commandImage.ExecuteNonQuery(); commandImage.Dispose();

文件下载

资源详情

[{"title":"( 9 个子文件 25.56MB ) ZXing一维码/二维码使用文档","children":[{"title":"Documentation","children":[{"title":"portable","children":[{"title":"zxing.net.portable.chm <span style='color:#111;'> 2.91MB </span>","children":null,"spread":false}],"spread":true},{"title":"wp7.0","children":[{"title":"zxing.wp7.0.chm <span style='color:#111;'> 2.83MB </span>","children":null,"spread":false}],"spread":true},{"title":"sl4","children":[{"title":"zxing.sl4.chm <span style='color:#111;'> 2.83MB </span>","children":null,"spread":false}],"spread":true},{"title":"wp7.1","children":[{"title":"zxing.wp7.1.chm <span style='color:#111;'> 2.83MB </span>","children":null,"spread":false}],"spread":true},{"title":"sl5","children":[{"title":"zxing.sl5.chm <span style='color:#111;'> 2.91MB </span>","children":null,"spread":false}],"spread":true},{"title":"net3.5","children":[{"title":"zxing.net3.5.chm <span style='color:#111;'> 2.92MB </span>","children":null,"spread":false}],"spread":true},{"title":"unity","children":[{"title":"zxing.unity.chm <span style='color:#111;'> 2.91MB </span>","children":null,"spread":false}],"spread":true},{"title":"net2.0","children":[{"title":"zxing.net2.0.chm <span style='color:#111;'> 2.94MB </span>","children":null,"spread":false}],"spread":true},{"title":"net4.0","children":[{"title":"zxing.net.chm <span style='color:#111;'> 2.99MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • 枫之幻月 :
    很有学习价值的文档,感谢.
    2018-07-02

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明