c# 4.0 - copy images from server to client machine in c# -
new windows application , stuck issue.
i have web application hosted in server , 1 of folder in application shared .i developing windows application same , need sync images in folder local folder in client machine's folder. that's why made shared in server. how can copy these files server client.
network path '\server-name\c$\inatallfolder\install 1\uploadedfiles\uploads' can done using 'file.copy' .
found lot of answers in web , stackoverflow itself. please advise better solution..
thanks , regards,
sivajith
i'm not sure if unterstand correctly. why can't copy network share?
you download files webclient:
byte[] data; using (webclient client = new webclient()) { data = client.downloaddata("http://localhost/images/w/abc.jpg"); } file.writeallbytes(@"c:\client\abc.jpg", data);
Comments
Post a Comment