2 Replies Latest reply: Jul 30, 2008 10:24 AM by 843851 RSS

    How to laod an image file when receiving a receiveObjectChangeEvent

    843851
      Recently we have developed a Xlet for upload image files. Once an image file is changed, the application receives a ReceiveObjectChangeEvent whose parameter has any info about how to reload the file.
      The code to reload the image file is described below:

      public synchronized void receiveObjectChangeEvent(ObjectChangeEvent event){          
           
      obj_dsmcc = (DSMCCObject)event.getSource();               
      loadImageBytes(new BufferedInputStream(new FileInputStream(obj_dsmcc)));
      }
                     

      Nertheless the loaded file seems to be the previous image file. We have tried to load files with different size but any tentative was unsuccessful.
      Please any idea to solve this drawback is welcome.
      Regards.