DavidWebb icon indicating copy to clipboard operation
DavidWebb copied to clipboard

Stream support

Open Hugolarson opened this issue 1 year ago • 0 comments

Hi,

Thank you for this library. Have a question how to accomplish this with it.

I dont want to write to ByteArrayOutputStream and then send it.

URL url = new URL(urlStr); HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();

ObjectOutputStream objOut = new ObjectOutputStream(new BufferedOutputStream(urlConnection.getOutputStream())); objOut.writeObject("Hello");

objOut.flush(); objOut.close();

Hugolarson avatar Nov 21 '23 10:11 Hugolarson