Rev 533 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 533 | Rev 534 | ||
|---|---|---|---|
| Line 73... | Line 73... | ||
| 73 | 73 | ||
| 74 | /*****************************************/
|
74 | /*****************************************/
|
| 75 | 75 | ||
| 76 | @Override |
76 | @Override |
| 77 | public String retornarCaminhoImagem(String pasta, String pastaPadrao, String nomeArquivo, String extensaoArquivo) { |
77 | public String retornarCaminhoImagem(String pasta, String pastaPadrao, String nomeArquivo, String extensaoArquivo) { |
| 78 | File foto = new File(pasta + nomeArquivo + "." + StringUtil.setarLowerCase(extensaoArquivo)); |
- | |
| 79 | return foto.exists()? pastaPadrao + nomeArquivo + "." + StringUtil.setarLowerCase(extensaoArquivo) : pastaPadrao + "SEM_IMAGEM.png"; |
- | |
| - | 78 | File foto = new File(pasta + nomeArquivo + "." + extensaoArquivo); |
|
| - | 79 | return foto.exists()? pastaPadrao + nomeArquivo + "." + extensaoArquivo : pastaPadrao + "SEM_IMAGEM.png"; |
|
| 80 | }
|
80 | }
|
| 81 | 81 | ||
| 82 | @Override |
82 | @Override |
| 83 | public ImagemDTO uploadImagem(UploadedFile e, String nomeArquivo, String caminhoPasta) { |
83 | public ImagemDTO uploadImagem(UploadedFile e, String nomeArquivo, String caminhoPasta) { |
| 84 | ImagemDTO imagemAdicionada = gerarArquivo(e, nomeArquivo); |
84 | ImagemDTO imagemAdicionada = gerarArquivo(e, nomeArquivo); |