1 Reply Latest reply on Dec 22, 2008 12:55 AM by mikail.ahundov.gmail.com

    seamspace example corrupt uploaded images (postgres 8.3)

    mikail.ahundov.gmail.com

      Hello.


      I use default seamspace example from Seam 2.1 with Postgres 8.3.
      It store uploaded images in text format table column.


      But returned image is corrupt
      Seamspace reads this image to bytearray data, but on



      icon = new ImageIcon(data);
      System.out.println(icon.getIconWidth());




      It returns -1.
      I think there are errors on uploading to postgres or on reading from postgres.


      How to find when image is corrupted???