weixin_33696106 2010-09-07 16:45 采纳率: 0%
浏览 14

从网址中检索图片

On my ASP.Net page in C#, the user is able to enter an URL (web page). When it's done, I would want to get the picture in this page. For an example of this, go on Facebook and write a status with an URL in it. A panel open with the description of the page AND the picture.

Is there a parser or a little application that I can use for this?

  • 写回答

1条回答 默认 最新

  • weixin_33671935 2010-09-07 18:57
    关注

    Look at this post for code on how to retrieve html DOM from an url . Once you get a reference to the IHTMLDocument3 instance, use the getElementsByTagName method to retrieve all IMG tags, and take the first.

    评论

报告相同问题?

悬赏问题

  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
  • ¥15 onvif+openssl,vs2022编译openssl64