rsanchez-wsu / jfiles

A Java-based file browser
GNU General Public License v3.0
20 stars 9 forks source link

Implement server-to-client file transfer - Implement file transfer support client-side (for receiving files). #308

Open SolidStateHero opened 7 years ago

SolidStateHero commented 7 years ago

This is a child issue of issue #289

After sending the files, the client must be changed so that it accepts the files. This may require more research in the future, and possibly needs to be split into other issues. The files must be accepted with user conformation and placed in a directory of the user's choosing, though these requirements are not necessary for this issue to be closed.

orangecraz commented 7 years ago

I'll see about some possible implementations for this tonight. No promises, but I'm confident that I can find something.

orangecraz commented 7 years ago

I found a couple of examples of read/write functions for Java. Here they are:

http://stackoverflow.com/questions/18054154/how-to-transfer-file-using-ioutils-copy-through-java-sockets

http://stackoverflow.com/questions/8153224/client-server-file-transfer-in-java

http://stackoverflow.com/questions/5113914/large-file-transfer-with-sockets

I've also found a page detailing some features of IOUtils, for those who aren't familiar with it. It also happens to cover a few features that might be useful for this task. It will be nice for those who are not familiar with it:

https://commons.apache.org/proper/commons-io/description.html