///定义并实例化一个内存流,以存放提交上来的字节数组。 m = new MemoryStream(fs); string physicalDir = Server.MapPath(rootDir); if (!Directory.Exists(physicalDir)) Directory.CreateDirectory(physicalDir); ///定义实际文件对象,保存上载的文件。 Bitmap bmp = new Bitmap(m); bmp.Save(Server.MapPath(filePath));
你好,请问怎样直接从内存中获取已经被WebBrowser写入到内存的图片流呢?
通过document对象获取网页代码,解析得到图片url,bitmap操作存取图片
試試引用 MS HTML ObjectLibrary 宣告一個 IHTMLDocument2介面來取值看看
http://bbs.bccn.net/thread-237699-1-1.html
m = new MemoryStream(fs);
string physicalDir = Server.MapPath(rootDir);
if (!Directory.Exists(physicalDir)) Directory.CreateDirectory(physicalDir);
///定义实际文件对象,保存上载的文件。
Bitmap bmp = new Bitmap(m);
bmp.Save(Server.MapPath(filePath));
你好,请问怎样直接从内存中获取已经被WebBrowser写入到内存的图片流呢?
MS HTML ObjectLibrary
宣告一個
IHTMLDocument2介面來取值看看