Download file uploaded on web server to windows c# application

  • Thread starter Thread starter nupurd
  • Start date Start date
N

nupurd

Guest
Hello,

I have two applications web and desktop both shares same database. I uploaded jpg or png files from web application and try to check thru windows application , it downloads file with 0 size and won't display in win application.


1. When i upload and check file from web application and check in web application its shows properly.

2. When i upload and check file from windows application and check in win application its shows properly.


But cross check won't work.

Code wrote in windows application -

Dim webClient As WebClient = New WebClient()

webClient.DownloadFileAsync(URL, filePath)

Catch ex As WebException
Console.WriteLine(ex.Message)
End Try

image = System.Drawing.Image.FromFile(filePath)


Need urgent help.


Thanks & Regards,

Continue reading...
 
Back
Top