Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Querying a Binary Database file over TCP socket conenction  RSS feed

 
kavitha Partha
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all,

WE have a binary database file and I need to write a TCP socket connection to to query the database file. I'm new to java . Can somebody please help me with a sample code of both the server side and the client side?


Thanks in advance for your help
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Sun Java Tutorial has a chapter on client/server socket communication.

How the DB file might be accessed is hard to say without knowing how it is structured. I'm guessing that the RandomAccessFile class might be involved.
 
kavitha Partha
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help. yes, I'm using a BufferedReader and Print Writer
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!