摘要: System.IO.MemoryStream Ms = new MemoryStream(); this.pcbEquipment.Image.Save(Ms, System.Drawing.Imaging.ImageFormat.Jpeg); byte[] img = new byte[Ms.Length]; Ms.Position = 0; Ms.Read(img, 0, Convert.To... 阅读全文
posted @ 2011-01-27 21:58 叶晓丰 阅读(506) 评论(2) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--[OperationContract]publicvoidDoUpload(stringfileName,byte[]context,boolappend){//上传目录stringfolder=System.Web.Hosting.HostingEnvironment.MapPath("~/upload");if(!System.IO.Directory.Exists(folder)){//如果 阅读全文
posted @ 2011-01-27 21:12 叶晓丰 阅读(397) 评论(0) 推荐(0) 编辑