1

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.

imgProxy.applyWatermark(imgProxy, imgProxy, strings);

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

Edit:

This is the code that "compiles" without errors but i don't have any output at the end. What am i doing wrong here?

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");

Note when i compile it only with this line

imgProxy.getDataInFile("C://Documents and Settings//Administrator//Desktop//slika.jpg");

it will generate me image on desktop but without watermark. So problem is only in that watermark method.

4

1 回答 1

1

该函数在Multimedia Reference中列出,但未在Multimedia DICOM Java API Reference (Javadoc)中列出。多媒体参考有一个应用水印的例子,尽管它是在 PL/SQL 中的。它还包括此注释:

您不能将相同的 ORDImage 指定为源和目标。

于 2012-07-24T03:34:52.280 回答