使用C#从http网页复制jpg [英] Copying a jpg from a http web page using C#

查看:79
本文介绍了使用C#从http网页复制jpg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用C#从网页访问和复制JPG。


我尝试过使用WebRequest,但我不知道该怎么做

WebResponse,我用

尝试使用WebClient但我遇到了一个代理错误?


任何建议。

Is there any way of accessing and copying a JPG from a web page using C#.

I have tried using WebRequest but I don''t know what to do this the
WebResponse, and I have
tried using WebClient but I cet a proxey error?

Any suggestions.

推荐答案

您应该查看System.Web.HttpRequest。构建并发布请求

并适当处理响应。


-vJ


Duncan Winn < TE ** @ test1.co.uk>在留言中写道

新闻:Ot ************** @ TK2MSFTNGP10.phx.gbl ...
You should look into System.Web.HttpRequest. Construct and post a request
and process the response appropriately.

-vJ

"Duncan Winn" <te**@test1.co.uk> wrote in message
news:Ot**************@TK2MSFTNGP10.phx.gbl...
有没有办法使用C#从网页访问和复制JPG。

我尝试过使用WebRequest,但我不知道该怎么做这个
WebResponse,我有
尝试使用WebClient,但我遇到了一个代理错误?

任何建议。
Is there any way of accessing and copying a JPG from a web page using C#.

I have tried using WebRequest but I don''t know what to do this the
WebResponse, and I have
tried using WebClient but I cet a proxey error?

Any suggestions.



谢谢,


但是当我尝试''使用System.Web;''编译器抱怨说它不能找到它?$ / $

有什么建议吗?

" Vijaye Raji" <无************ @ hotmail.com>写在消息

新闻:Om ************** @ TK2MSFTNGP09.phx.gbl ...
Thanks,

But when I try ''using System.Web;'' The compiler complains that it can''t
find it?

Any suggestions?
"Vijaye Raji" <no************@hotmail.com> wrote in message
news:Om**************@TK2MSFTNGP09.phx.gbl...
你应该看看系统.Web.HttpRequest。构建并发布请求并适当处理响应。

-vJ
You should look into System.Web.HttpRequest. Construct and post a request
and process the response appropriately.

-vJ



谢谢,


但是当我尝试''使用System.Web;''编译器抱怨说它不能找到它?$ / $

有什么建议吗?

" Vijaye Raji" <无************ @ hotmail.com>写在消息

新闻:Om ************** @ TK2MSFTNGP09.phx.gbl ...
Thanks,

But when I try ''using System.Web;'' The compiler complains that it can''t
find it?

Any suggestions?
"Vijaye Raji" <no************@hotmail.com> wrote in message
news:Om**************@TK2MSFTNGP09.phx.gbl...
你应该看看系统.Web.HttpRequest。构建并发布请求并适当处理响应。

-vJ
You should look into System.Web.HttpRequest. Construct and post a request
and process the response appropriately.

-vJ



这篇关于使用C#从http网页复制jpg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆