How to download a file using a Java REST service and a data stream

“How can I directly (without saving the file on 2nd server) download the file from 1st server to client’s machine?” Just use the Client API and get the InputStream from the response Client client = ClientBuilder.newClient(); String url = “…”; final InputStream responseStream = client.target(url).request().get(InputStream.class); There are two flavors to get the InputStream. You can … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)