c# - How to use Downloadfile to save an image into a specific folder -


for (int counter = 0; counter <= temparray.length - 1; counter = counter + 1) {     if ((counter < temparray.length + 2) && (temparray[counter] == "><img") &&    (temparray[counter + 1] == "id='header-img'"))     {         string j = temparray[counter + 2];          int startindex = j.indexof('"') + 1;          int length = j.indexof('"', startindex) - startindex;          string jj = (j.substring(startindex, length));          client.downloadfile(jj, @"c:\image.png");     } } 

i url image saved string called jj, i'm trying save folder , not succeeding.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -