1 Reply Latest reply: Sep 2, 2008 8:14 AM by 630530 RSS

    ORDImage troubles

    630530
      Hello,

      When I try to insert an image as an external file, it works fine. I use something like insert into image values (1, ORDImage.init('FILE', 'MYDIR', 'filename.jpg'). The file lies externally on the file system.

      The insertion itself works fine, but when i query certain properties with methods like GetWidth(), GetHeight() etc. only NULLs are returned. In fact, there is nothing more than getsource(), getsourcename() and so on which return values at all. Those ones returned are correct, though.

      Does anyone of you have an idea?

      Thanks in advance and best regards,
      Martin
        • 1. Re: ORDImage troubles
          630530
          ok,

          I solved it already.

          just had to change the following:

          img ORDImage;
          ...
          INSERT INTO image VALUES(1, ORDImage.init(...)) RETURNING image_file INTO img;
          img.setProperties();
          UPDATE image SET image_file=img WHERE...

          This did the trick - i forgot to set the properties...

          Thanks anyway,
          Martin