I have a MultipartFile and I need to compress inputStream as gzip and sent it, but I need to find a way to compress it and know the compressed size of ...
I have a MultipartFile and I need to compress inputStream as gzip and sent it, but I need to find a way to compress it and know the compressed size of ...
I'm chan beginner for Java developer one of my Interviewer asked this question on Interview I failed and i want to learn this so please share the know ...
Should I close HttpUrlConnection and InputStream in this case? Only closing the connection will close the stream also? I feel that it's a bad practice ...
I'm trying to set up a very simple communication flow between System.in and System.out in Java, in order to understand how streams work. I'm using Dat ...
Basically, I am trying to read data over REST from cipherInputStream but it looks like it is not available until the other service which is writing to ...
I want to make a program that takes a list of numbers and reads the input. The problem is that the input will be taken with both spaces and enters. Th ...
I found my project unexpectedly stuck for 30 seconds in the middle of a test using CTS(Compatibility Test Suite). This is the code from com.sun.ts.tes ...
i made a Java application whose purpose is to offer a Print Preview for PS files. My program uses Ghostscript and Ghost4J to load the Post Script fil ...
I create a streamHelper function to load any file that is on the classpath, this is the path for my json file, but I got error when I using this funct ...
I'm reading the data from a serial port using InputStream. One part of the stream I need to convert to String, and the other one to binary data. I a ...
I am a beginner for kotlin and android application. I would like to record voice continously and pass the voice data to server via socket. I tried t ...
How can a byte array with 0 memory allocation (byte[] arr = new byte[0]) take bytes read from InputStream? Below is my code I would expect the cod ...
I am currently trying to return an input stream via my API. The input stream contains an html file that I previously fetch from Jenkins via the Cdancy ...
I have a Java project with the package com.myproject.schema where I have the test.txt file. To read the content of that file from the package com.mypr ...
In QuickFixJ the config file is not read, causing session settings to be null, but the initiator still starts, but doesn't connect anywhere. There are ...
In Spring Boot the zip file that comes as a response has a corrupted structure before saving, but there is no problem when I save it physically. I nee ...
I have a situation with ZIP-archives and idk what's better method for unpacking. I correctly understand that if we will use InputStream.readAllBytes( ...
I am writing a rest api method. I have to get a zip file, then read the data in that file and write it to the database. But I have to achieve this wit ...
My Project looks like: on the AlgorithmTest I have to read some values from application_config.yaml which is located in another maven module. To r ...
I have an ZipInputStream made from a byte array , I can iterate through the zipInputStream ZipEntrys but I cant find a method to get the data from the ...