Click here to Skip to main content
15,902,939 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi every body

I want to design a project where i need to transmit a large file size of about 400 to 700MB from one system to another machine . I have done the copying of file using socket using sliding window protocol. But it takes more time to transmit ( it carries just 8Kb of data for each instance). I socket the maxim data that can be send is 8192 default buffer size . But i want to send a data of size of minim 20MB of data at each instance or more if possible by this coping process takes less time to copy to destination .I searched in net about this . It gave me the answer of window directory service . But i didn't get it properly . So can anybody suggest some Example , link what ever which will help me ....


Advance thanks
Arun
Posted
Updated 21-Sep-11 22:44pm
v2

Your transfer can only be as fast as the hardware you're using to perform the transfer. Your speed is going to be dictated by either the network connection, or the combined relative hard drive speed of the two machines involved in the copy process, or both.

Honestly, the fastest way to transfer a large file is to put the file onto a removable hard drive, detach the hard drive from the source computer, and attach the hard drive to the target computer. Voila! Problem solved.
 
Share this answer
 
Comments
BillWoodruff 15-Sep-11 6:39am    
+5 perfect answer !
Look at the following link on codeproject : File Transfer using Socket Application in C# .NET 2.0
 
Share this answer
 
Comments
arunrv 22-Sep-11 3:55am    
caunt i transfer data without using socket . Like some DLL or inbuild OS windows services or any other library functions
Mehdi Gholam 22-Sep-11 4:07am    
copy "source" "destination"
Arun,

Depending on the file you are trying to transfer, you would consider using compression to make it smaller before you send it across the network. Of course, the compression depends on the type of file you are sending across the network. If it is audio or visual, that is harder to do. If you're transferring a virtual hard drive or large text based file, compression could significantly minimize the time to transfer the file.

Please consider that compression does take time on both ends, so it depends on the speed of the connection you're dealing with. If you are over the Internet with a slow connection, it can be a significant factor in speeding up your process. If you're on a local network, it may not provide much help.

How to compress files via MSDN[^]

Hogan
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900