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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top