Solved

How to use the My object to upload and download file?

Posted on 2006-11-21
2
227 Views
Last Modified: 2011-10-03
Can you provide an example where the My object is use to download and upload a file?
0
Comment
Question by:zachvaldez
2 Comments
 
LVL 10

Accepted Solution

by:
gangwisch earned 150 total points
ID: 17991943
To Upload File:
My.Computer.Network.UploadFile("c:\File.txt", "http://www.someserver.com/upload.aspx")


To Download File:
my.Computer.Network.DownloadFile("http://www.someserver.com/myfile.aspx","c:\myfile.txt")
0
 
LVL 15

Assisted Solution

by:Solar_Flare
Solar_Flare earned 100 total points
ID: 17991958
I'm not sure what you are asking.

you want to download a file?

you can use webclient class to download files easily.

dim wc as new net.webclient
wc.DownloadFile("www.someurl.com", "c:\filename.fil")
wc.uploadfile(..., ...)
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Calling web service and its methods dynamically 2 59
Advice in Xamarin 21 79
VB.NET - Error - Object not set in Module 4 33
vb.net class 3 12
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question