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
Post a Comment