Good time of day. There is a java program — its functionality is small — a file is received over the network (that is, it opens the port, waits for a connection, and loads the file to the server). How can you connect to the program from the site and download the file directly from the site? What technologies and methods to look towards?
I think you have two options:
1) a simple applet that connects to your prog server
2) instead of the server (and / or with it) you hang a simple web server. which will provide the functionality you need. the web server can work directly with the file system of the computer or as an add-on for your program
The whole question is how this Java program works.
- If she sits in front of the open port and waits, then in fact she already acts as a server - then it’s necessary to push her address and port what she is waiting for
- If it needs to be run remotely, it is more difficult. Polyubas will have to write some kind of service shell over this program, so that the remote site can reach it - a service / server should look outside. You can implement it in a mass of different ways, well, the most fashionable one probably through a web service. There is a simpler way to Java Network Launch Protocol - it is Java Web Start - if quite briefly a way to launch applications through the network.