반응형
//이미지 파일 저장
private void imageCreate(string pathname)
{
string filepath = "";
WebClient clt = new WebClient();
//받아올 경로
string url = imgpath + pathname + "/";
if (Directory.Exists(paths+pathname)==false)
Directory.CreateDirectory(paths+pathname);
clt.DownloadFile(url+aryimg[arycnt],paths + filepath+ aryimg[arycnt]);
}
----------------------------------------------------------------------------
WebClient를 통해서 웹에 공개된 이미지를 다운로드.

+ Recent posts