Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
i have a chat application . the data has been transferred through database .. i need to send files also ...
Posted 8-Jan-13 18:15pm

1 solution

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

Solution 1

I think you want to send files between users. The files don't need to go in a DB, the most sensible thing is to send them directly, peer to peer, through your application, with the server telling the two instances the other users IP address.
  Permalink  
Comments
fakeer muhammed at 9-Jan-13 1:15am
   
We need a record of the sending files....... So it should go to DataBase........ CAn u give any coding for sending the Files Peer to Peer
Christian Graus at 9-Jan-13 3:04am
   
http://www.codeproject.com/Articles/22145/Using-Asynchronous-Sockets-for-Peer-to-Peer-Collab
 
There is a search box for articles on the top right...
tiggerc at 9-Jan-13 3:24am
   
If you want to send files through a database you need a way to store the byte data in a database, which involves storing the file in a byte array and then writing a stored procedure to accept the byte array as an argument and store it in the databse.
Christian Graus at 9-Jan-13 3:36am
   
Assuming he wants to send the actual files, then they need to go through the central server.
tiggerc at 9-Jan-13 4:32am
   
Yes I agree but nothing to say that the central server couldn't post to the database then pass the other user a link to that file.
fakeer muhammed at 11-Jan-13 23:30pm
   
i neeed to send a file as it does in skype or g talk

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

  Print Answers RSS
0 OriginalGriff 310
1 Sergey Alexandrovich Kryukov 176
2 PhilLenoir 164
3 Richard MacCutchan 160
4 Sharmanuj 146
0 Sergey Alexandrovich Kryukov 6,077
1 OriginalGriff 5,115
2 CPallini 2,473
3 Richard MacCutchan 1,597
4 Abhinav S 1,505


Advertise | Privacy | Mobile
Web01 | 2.8.140814.1 | Last Updated 9 Jan 2013
Copyright © CodeProject, 1999-2014
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