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&amp;r=1309587154480&amp;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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -