08 2011 档案

摘要:WebService部分代码[WebMethod]publicstringUploadFile(byte[]fs,stringFileName){try{///定义并实例化一个内存流,以存放提交上来的字节数组。MemoryStreamm=newMemoryStream(fs);///定义实际文件对象,保存上载的文件。//FileStreamf=newFileStream(Server.MapPath(".")+"\\image\\"FileStreamf=newFileStream(@"E:\01\SmartDeviceProject1\Web 阅读全文
posted @ 2011-08-17 19:54 jhtchina 阅读(1150) 评论(0) 推荐(0)
摘要:获取句柄usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Diagnostics;usingSystem.Runtime.InteropServices;usingSystem.Reflection;namespaceWindowsFormsApplication2{publicpartialclassForm1:Form 阅读全文
posted @ 2011-08-15 20:09 jhtchina 阅读(2314) 评论(0) 推荐(1)