title: oracle ordim add watermark to image
body: <p>Oracle ordim is library that is bundled with oracle 11g database its purpose is to manage multimedia content in the database. How to add watermark using it? This is the function that is built in ".applyWatermark" but it just doesn't work with me. I have oracle 11g database installed so i use its ordim library. here is demo code.</p>
  
  <pre><code>imgProxy.applyWatermark(imgProxy, imgProxy, strings);
  </code></pre>
  
  <p>first attribute is source image, second is destination image and string should be the text of the watermark, note source and destination images are same in my case. How can i add simple TEXT or image watermark to it. Can anyone post a working example. I have searching for online documentation but official oracle documentation is not enought for me to get it to work. Please help guys</p>
  
  <p>Edit:</p>
  
  <p>This is the code that "compiles" without errors but i don't have any output at the end. What am i doing wrong here?</p>
  
  <pre><code>String []strings = new String[3];
  strings[0]="test1";
  strings[1]="test2";
  strings[2]="test3";
  imgProxy.applyWatermark(imgProxy, imgProxy, strings);
  imgProxy.getDataInFile("C://Documents and Settings//Administrator//Desktop//slika.jpg");
  </code></pre>
  
  <p>Note when i compile it only with this line </p>
  
  <p><code>imgProxy.getDataInFile("C://Documents and Settings//Administrator//Desktop//slika.jpg");</code> </p>
  
  <p>it will generate me image on desktop but without watermark. So problem is only in that watermark method.</p>