19 January 2009

ImageViewer

I made a javabean for Oracle Webforms which can display images through a url.


I make use of a sun java library (java advanced imaging: jai_core.jar and jai_codec.jar) and based on an example I made a simple bean so it can read an image through an url.

In the webform I placed a text field and by pressing a button I pass the url to the javabean. In the javabean it is possible to size the image and to rotate the image. In Oracle Forms I make use of the fbean.register methode. I made this choice because I had some difficulties with the use of the implementation class in Oracle Forms and the setPropery in the java class. The fbean.register method makes it also easier to use inside Oracle Designer.

You can find the Form and two java classes at the following url: http://sites.google.com/site/oraont/imageviewer-en. The jai_core and jai_codec library's can be found at the site of sun:
http://java.sun.com/javase/technologies/desktop/media/jai/
.

0 reacties:

Post a Comment