You have a lot of options with
Java.
One of the simplest would be to HttpURLConnection - assuming both can handle HTTP connections.
Another alternative would be email.
Packaging the data for transmission could be as simple as emulating an Http form request with named parameters or as complex as an encrypted
SOAP message.
What are your requirements for secrecy, security and authentication of the data? How large is the data likely to be.
Bill