0
I’m with a project JSF
with the model DAO using Hibernate
, and I’m having a hard time understanding how to save the image in the database.
I would just need to know what the method would look like to save an image in a class DAO and how he’d look in class Bean
.
I found this video: https://www.youtube.com/watch?v=2b3KQApdOAU
For me this video does not serve because it saves on disk. I made these posts on the GUJ site but I did not get results: http://www.guj.com.br/39728-como-gravar-imagens-na-base-de-dados-em-jsf
This one got closer than he needed: http://www.guj.com.br/39230-jsf2---upload-de-imagens
This was a repository I found: https://github.com/wladyband/fileupload
This is the project I’m working for: https://github.com/wladyband/Drogaria/tree/master/Drogaria
And that’s the class I want to introduce: https://github.com/wladyband/Drogaria/blob/master/Drogaria/src/br/com/drogaria/domain/Produto.java
And specifically, what’s your question? You said you checked some projects, did you test the solution used on them? If so, did you have any problems?
– Bruno César