2 Replies Latest reply on Jul 30, 2008 3:24 PM by 843851

    How to laod an image file when receiving a receiveObjectChangeEvent

      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.