FTP server

A

Abhishek

Hi! Everyone
I have an FTP server application thru which i am uploading files in my
parent application
This is working fine.
What i want to know is that is there any method thru which i can get to know
the amount of data that has been transferred.
e.g i have a 10 mb file that is being uploaded. I want to display the
progress of the uploading of the file
how do i achieve this.

Thanks for ur responses
Abhishek
 
M

Mark

You may need to provide more information on how you are "uploading files"
for us to be useful. However, check out:

1. System.IO.File --> File.Length property, etc
2. System.IO.FileInfo
3. Or, if you're using/have access to a Byte[] or some sort of stream as
you're working with the file, you should be able to get the length of the
byte array that is being passed around, and convert that to MB.

Hope this helps.

mark
www.dovetaildatabases.com
 

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

Top