-
November 13th, 2010, 10:59 AM
#1
C# transfer a file over network
I've been trying to implement this example for transferring files over a network (LAN & Internet)
http://www.dotnetspider.com/resource...prime-num.aspx
However, I run the program and it copies the file to my specified directory fine but transfers double the amount of bytes, doubling the file size and thus corrupting the file!
I have searched the net for what I need but can't find any decent tutorials that actually work,
Basically I want to have a server which can accept a connection, then send a particular file back to the user.
I assume I will want to use filestream for my transfers?
I'm still fairly new to C# but not to programming.
-
November 13th, 2010, 11:01 AM
#2
Re: C# transfer a file over network
-
November 13th, 2010, 06:22 PM
#3
Re: C# transfer a file over network
Not sure why they are flushing the file in every iteration, but you don't need to. Also, it helps if you post your actual code instead of the example. Looking at an example is not helpful, we need real code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|