Click here to Skip to main content
13,447,026 members (43,164 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hey Guys,
I have made a chat program in to send text between two PCs. Now I need to upload a file like a PDF or rar or recorded sound and do some encryption on this file in and then send these files between PCs. How can I do this? How can I attach the file to my program and start encrypting my file?
Posted 15-Nov-12 3:41am
Updated 15-Nov-12 4:14am
Sergey Alexandrovich Kryukov 15-Nov-12 10:17am
Upload from what to what? What are the application types, exactly?
yahia777 15-Nov-12 11:33am
I need it to work like a traditional messenger application.. meaning, I want to send a file from my own pc to the other pc.
for example, attaching a picture, a word document, a recorded sound etc. to my program and send it to the other end.
Sergey Alexandrovich Kryukov 15-Nov-12 13:36pm
There is no "just PC". Software systems and applications send and receive massages, not PCs. So, you need to specify what it should be. If you develop code for one or both sides, you need to tag application type(s) you want to have, explain their purpose and provide other detail. It would be the best to start with ultimate purpose of your development.

With .NET, you have many kinds of communication facilities on different levels. You need to explain what do you expect to achieve.
ryanb31 15-Nov-12 11:49am
I wrote one in VB years ago where I used UDF and broke the file into packets and then reassembled. I assume there is likely a much better way now, but I am not sure.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Please see my comments to the question. Communication can be organized on one of several different levels of networking, remoting or WCF.
Please see my overview of these approaches in my past solutions:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.180318.2 | Last Updated 15 Nov 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100