- Timestamp:
- Sep 2, 2010, 7:34:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/service/ImageService.java
r6833 r6840 77 77 */ 78 78 public boolean creer(String filePath, Integer idCategory) throws Exception { 79 MainFrame.getInstance().setReussiteMessage(Messages.getMessage("mainFrame_resizing") );79 MainFrame.getInstance().setReussiteMessage(Messages.getMessage("mainFrame_resizing") + " " + filePath); 80 80 //get the byte array of the original file, to keep metadata 81 81 byte[] bytesFichierOriginal = Outil.getBytesFromFile(new File(filePath)); … … 98 98 //I use here a try catch because if the original file isn't a jpeg 99 99 //the methode Outil.enrich will fail, but the procedure has to continue 100 MainFrame.getInstance().setReussiteMessage(Messages.getMessage("mainFrame_addMetadata") );100 MainFrame.getInstance().setReussiteMessage(Messages.getMessage("mainFrame_addMetadata") + " " + filePath); 101 101 try { 102 102 byte[] fichierEnrichi = Outil.enrich(bytesFichierOriginal, Outil.getBytesFromFile(new File(System … … 115 115 image.setOriginale(originale); 116 116 image.setIdCategory(idCategory); 117 MainFrame.getInstance().setReussiteMessage(Messages.getMessage("mainFrame_sendingFiles") );117 MainFrame.getInstance().setReussiteMessage(Messages.getMessage("mainFrame_sendingFiles") + " " + filePath); 118 118 //now we call the dao to send the image to the webservice 119 119 return ImageDao.getInstance().creer(image);
Note: See TracChangeset
for help on using the changeset viewer.