dr_twilight

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

System.Drawing.Image _CodeImage = _Code39.GetCodeImage(OrderNo, Code39.Code39Model.Code39Normal, true);
System.IO.MemoryStream _Stream = new System.IO.MemoryStream();
_CodeImage.Save(_Stream, System.Drawing.Imaging.ImageFormat.Jpeg);

string strUrl = "data:image/gif;base64," + Convert.ToBase64String(_Stream.ToArray());
_CodeImage.Dispose();
_Stream.Dispose();
listOrders[0].TwmHtml = strUrl;

posted on 2015-08-24 17:49  dr_twilight  阅读(468)  评论(0编辑  收藏  举报