Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a chat application . the data has been transferred through database .. i need to send files also ...
Posted

1 solution

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.
 
Share this answer
 
Comments
fakeer muhammed 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 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 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 9-Jan-13 3:36am    
Assuming he wants to send the actual files, then they need to go through the central server.
tiggerc 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.

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