摘要:
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... 阅读全文
摘要:
代码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)){//如果 阅读全文