当前位置:编程学习 > C#/ASP.NET >>

Winfrom中如何上传照片

Winfrom中如何上传照片 --------------------编程问答-------------------- WebClient wc = new WebClient();
wc.UploadData(...) --------------------编程问答--------------------
引用 1 楼 hbxtlhx 的回复:
WebClient wc = new WebClient(); 
wc.UploadData(...)
--------------------编程问答--------------------
            FileStream fs = new FileStream("imagePath");
            byte[] bytes = new byte[fs.Length];
            fs.Read(bytes, 0, bytes.Length);


保存bytes到数据库 --------------------编程问答-------------------- FileStrem 中有这样的构造函数吗 new FileStream("imagePath")
补充:.NET技术 ,  .NET Framework
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,