UploadFile on ASP.NET

  • Thread starter Thread starter Tomek
  • Start date Start date
T

Tomek

Hi
I have problem with uploading files from local PC into server in ASP.NET

My code:
Dim myWebClient As New WebClient
myWebClient.UploadFile(ServerPathAndFileName, "POST", LocalPathAndFileName)

The problem is when I'm uploading images (jpg, gif). All images are uploaded
without images atributies (like Width, Height) so Its can't be used on web
form.
What I'm doing wrong?
Tomek
 
What class do I have to use to copy files with its content? I can not find
any suggestions in this case.
BR
Tomek
 
Back
Top