Most voted "inputstream" questions
14 questions
Sort by count of
-
5
votes2
answers213
viewsLike "clone" an Inputstream?
Often I need to read a InputStream more than once. For example, to pass on the content of stream for multiple methods. void readStream(InputStream input) throws Exception { var result1 =…
-
1
votes0
answers34
viewsAudioinputstream.close() not working (Unable to delete file)
I’m having a problem with an Audioinputstream. After making the adjustments I need, I give a AudioInputStream.close() (equivalent to InputStream.close()) so I can delete the file later. But in doing…
-
1
votes1
answer763
viewsFilewriter and Fileoutputstream: when should I work with each of them?
Often we find codes that could be solved with the use of objects of the type FileWriter or FileOutputStream. For example, a simple code that writes "Teste" in the archive /tmp/arquivo: With…
-
1
votes0
answers16
viewsJasperprint without ultilizar a Collection
Doubt in the use of Jasperprint without a Collection The following code should generate a PDF using only one Ready DTO object, but the problem is that the Jrbeancollectiondatasource instance:…
java spring-boot jasper-reports pdf-generation inputstreamasked 4 years, 12 months ago Eric Maycon Conceição Pessoa 11 -
1
votes0
answers16
viewsImageio.read returns null when Inputstream use jersey
I have the following problem I have the following service: @PUT @Path("/validateQRCode") @Logging @Permissions(allAllowed = true) @Consumes(MediaType.MULTIPART_FORM_DATA)…
-
0
votes2
answers151
viewsHow to read sdcard CSV file?
Currently I read a file csv of the briefcase assets with the following code: String arquivoCSV = "clientes.csv"; AssetManager manager = context.getAssets(); InputStream inputStream = null; try{…
-
0
votes1
answer67
viewsDoes closing Datainputstream always close Inputstream?
I need to temporarily use one Datainputstream with an inputStream of a socket. I need to use close-up on Datainputstream? And if I use I’d be closing the socket inputStream too ?…
-
0
votes1
answer48
viewsSave content to your phone
I am making an application, where I have a list of questions, and if the user leaves the application or screen, I would like to save the questions he already answered, so when he goes back to that…
-
0
votes1
answer39
viewsChecking the existence of a file
Given a file url: URL pomUrl = new URL("https://gitlab/grupo/projeto/blob/develop/pom.xml"); How can I verify the existence of a sister file to this? Something like: public boolean temIrmao(String…
-
0
votes0
answers24
viewsHow to pick up the microphone level using Javascript
What I would like is a way to get the level of the microphone I define in Windows. I use this code to catch the stream navigator.mediaDevices.getUserMedia() .then(function(stream) {…
-
0
votes0
answers11
viewsproblems with Inputstream, Filenotfound
I am making a game in it contains several images and sounds that stay in the project folder when exporting the . jar all the imports disappear said my problem is that I was using ImageIO.read(new…
-
0
votes1
answer296
viewsOpen pdf by URL and Inputstream Pdfview
I would like the user to enter the product code (at activity_main.xml) and click the button. The screen changes (view_pdf.xml), would make a PDF download (AnsyTask) and would open on PDFView for…
-
0
votes0
answers29
viewsInvalid Http Response
I have the following block of code public void read( String url ){ try{ urlNormal = new URL("http://"+url+"/sistema.cgi?lermc=0,33"); URLConnection conn = urlNormal.openConnection(); BufferedReader…
-
-1
votes1
answer88
viewsdownload is not performed via outputStream
I am trying to download a file. CSV that I have saved. However the download does not appear to me when I click the button and no error code appears. How can I test to see how far the procedure is…