I have finished developing a small MySQL database for a company and have begun implementing the client-server program for reading and writing data from and to the database using RMI and Swing. The server
java program is designed to handle all requests for data from the client and authenticate users etc, currently I am able to enter my login details into the client and have the database authenticate me (albeit insecurely). But I need to know what is the best format for passing data to and from the server program? For example in the form of text, or more complex objects?