I have a problem, implementing an java agent for converting pictures.The code is running as jar-file well unter WinXP SDK 1.5, but from inside Notes I can’t get it running until now.
The problem is, that I need the class-package ‘javax.imageio’ in my code, wich is not automatically implemented in Notes - can anybody tell me, how I can solve this problem?
I’m new to notes, therefore I’m not so confirm with the Notes/Domino java-implementation.
Thanks for any help
Hermann
Subject: using javax.imageio in java agent
Hi Hermann:
From http://www-12.lotus.com/ldd/doc/domino_notes/6.5.2/readme652.nsf
The version of Java that is included with installations of Notes/Domino 6 is Java 2 version 1.3.1_02.
javax.imageio is only since 1.4 - what are you trying to do with the pictures?
George 
Subject: RE: using javax.imageio in java agent
hello George - thanks for help,I must scale pictures, the function is so: the agent is called with the following parameters:
source-picture-path
destination-picture-path
max. dest-width
max. dest-height
the job is to optimize the picture and save it as new jpeg to the destination path.
I would like to do the programming with the onboard features of Notes/Domino, but I ditn’t find a way so long.
Hermann
Subject: RE: using javax.imageio in java agent
Hermann,I’ve used the following resource to solve similar issues with much success :
http://drh02.eapps.com/eview/viewr6.nsf/98d04202b8620d948525653800408d1d/5eaf3b48bcf07d1185256ff6005232c2/$FILE/v-bay.nsf
The v-bay.nsf database is a demonstration database with an agent and custom LotusScript classes that work with freeware from ImageMagick to produce thumbnail and standard-sized images of uploaded picture files.
Subject: RE: using javax.imageio in java agent
Thanks very much,this is a great tool - I think it solves all my problems.
Hermann
Subject: RE: using javax.imageio in java agent
If that’s the case you can also use JIMI, as in
http://www-10.lotus.com/ldd/nd6forum.nsf/ShowMyTopicsAllFlatweb/b51a9677ecf025fb85256f1f003fc3c8?OpenDocument
and while java still makes a temporary file on the server so that unrestricted access is required by the agent, the image is resaved back into a document and not onto the underlying file system. This can be changed though should you want.
If you like I can mail you an example. I’d put it in the Sandbox but can’t see how you upload it.
HTH, George 
Subject: RE: using javax.imageio in java agent
Well, George, if Lotus doesn’t want to give you a means to submit to the Sandbox, there’s always OpenNTF.org:
http://www.openntf.org
Since this is a code implementation rather than a full-fledged application, you can put it in the Code Bin. If it is a “real” application, you can create a Project instead, which will allow other open sorcerors to work their magick as well.
Subject: RE: using javax.imageio in java agent
Aha! Have you got your pointy hat on, oh Stan? I’ve always liked the vocative
I do have an example db, and will look at uploading it tomorrow.
Subject: RE: using javax.imageio in java agent
No, sorry. I’ve just been listening to too much T. Rex and Donovan lately ;o)
Subject: RE: using javax.imageio in java agent
Thanks again George,yes, it would be helpfull if you could send me an example, the ImageMagick is a powerfull tool, but it would be much better, if I could work from inside notes.
greetings Hermann
Subject: RE: using javax.imageio in java agent
I’ll need and email address then Hermann…I’m good but I’m not /that/ good 
George 
Subject: RE: using javax.imageio in java agent
Sorry George - hermann@kuffner.de
thanks