Questions tagged as 'java'

1
answer

File sent to firebase has 0Bytes

I have a problem, I can send the pdf to the storage, but it is arriving with 0Bytes. I am not sending any files, but inside this structure I would like to know how to get the uri from the pdf file. private void uploadFile() { try {...
asked by 25.09.2018 / 02:43
1
answer

Get value from an application.properties property - Spring Boot

I am a beginner in Spring Boot. I have a project in Spring Boot which has a application.properties and the inside has a property with a value ( spring.datasource.username=user ) and I want to get this value in a class java mine, I w...
asked by 04.10.2018 / 05:58
1
answer

Rename ImageView to Upload

Good morning, I would like to ask a question, my APP so far the guy takes a picture of the phone and stays in an ImageView (Ex: img1), I need to create a name defined by me in a variable example: 04102018_Foto1.jpg, would have some way so I c...
asked by 04.10.2018 / 16:56
1
answer

How to handle maximum upload file size exceeded

I have an application, which uploads a file (spreadsheets), but after a recent test pointed this error: Caused by: java.io.IOException: UT000054: The maximum size 1048576 for an individual file in a multipart request was exceeded I have alr...
asked by 10.12.2018 / 20:39
2
answers

Get an item from each Row

How can I get an Item from each Row? For example, I have a column with the following Rows: TEST TEST TEST2 TEST2 TEST3 As I wanted: TEST TEST2 TEST3 My code: public void carregar(){ qy = "SELECT TESTEROWS F...
asked by 27.09.2018 / 19:43
1
answer

System is only in load - Tomcat 9 - Eclipse

Thesystemloadsonlythefirstscreen,nootherpageloads,onlyloading.Note:WhenItrytodebugthecode,itdoesnotreachthebreakpoint.WhenyoustoptheTomcatserver,thefollowingerrorsarereturned:WARNING:Thewebapplication[cq]appearstohavestartedathreadnamed[Abandon...
asked by 14.09.2018 / 21:34
1
answer

Android listview with slowness

What might be causing slowness? Code of Adaptador : public class Adaptador extends BaseAdapter{ private static LayoutInflater inflater = null; Context contexto; String[][] datos; int[] datosImg; public Adaptador(...
asked by 24.10.2018 / 21:31
1
answer

Apply setItemOnClickListener to Button GridView. Kotlin or Java

I've done a gridView of buttons, but when I use the setOnItemClickListener method to trigger the respective buttons, it does not work. I want to use the buttons so that I can trigger an intent, knowing that you can only trigger an intent with...
asked by 16.10.2018 / 14:43
1
answer

Code does not update in JPA hibernate in Eclipse

Hello everyone, I'm doing a system to sharpen my techniques a bit and I came across a problem. I modified my code for a while but when I was debugging it looked like it was running the old code. I am doing a crud with Hibernate JPA and Eclipse....
asked by 03.09.2018 / 05:03
1
answer

Write in the spreadsheet from the last line without writing

I'm trying to write in an excel spreadsheet from the last line written without deleting the content that already existed, I've been able to pick up the last line and write from it, but when I type it deletes what was previously. I used an IDE to...
asked by 03.09.2018 / 16:57