I'm trying to make this rather basic FTP program in Java for a module in the University. The Server and the Client are communicating using Hash Tables, for both commands and files. My problem is that I don't quite know how to "put" a file in a Hash Table. I know it's possible because I was told so by one of my tutors but he just won't tell me how to implement it.
He said something about "putting" it in the hash table in two ways, using either string or binary code. I'm not quite sure how I can transoform a file into either of those formats using Java, since I've only just started learning about it.
Any help would be appreciated and thanx in advance.
Any help would be appreciated and thanx in advance.