Ignore:
Timestamp:
Sep 2, 2010, 7:34:07 PM (14 years ago)
Author:
mlg
Message:

Two minor improvements :

  • I now get the responses of piwigo's webservices as stream, and not as string any more.
  • The information panel now displays which file is being processed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/service/ImageService.java

    r6833 r6840  
    7777     */
    7878    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);
    8080        //get the byte array of the original file, to keep metadata
    8181        byte[] bytesFichierOriginal = Outil.getBytesFromFile(new File(filePath));
     
    9898            //I use here a try catch because if the original file isn't a jpeg
    9999            //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);
    101101            try {
    102102                byte[] fichierEnrichi = Outil.enrich(bytesFichierOriginal, Outil.getBytesFromFile(new File(System
     
    115115        image.setOriginale(originale);
    116116        image.setIdCategory(idCategory);
    117         MainFrame.getInstance().setReussiteMessage(Messages.getMessage("mainFrame_sendingFiles"));
     117        MainFrame.getInstance().setReussiteMessage(Messages.getMessage("mainFrame_sendingFiles") + " " + filePath);
    118118        //now we call the dao to send the image to the webservice
    119119        return ImageDao.getInstance().creer(image);
Note: See TracChangeset for help on using the changeset viewer.