web controls - how to download an image from webcontrol using c# without the exact image url -
i have made program download image automatically. pass html code ,i see src attribute of img html element not exact image file url ,it following:
<img id="door2img" width="450" height="50" src="/pincode/pin1.php?lang=zh&r=1309587154480&rule">
it confusing, using c# webcontrol programming. can img html element,how can dowload image in such situation,because there's not image url?
extract value of src attribute , append base url (i.e. in http://some.site.com/section/page?id=5 base url http://some.site.com). pass string webclient.downloadfile or webclient.downloaddata , you'll need.
Comments
Post a Comment