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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -