You can use a feature of Tamino to serve the documents without query and other hassles. This only works if you know the document/picture you need:
http://hostname/tamino/dbname/collection/doctype/@inoid
or
http://hostname/tamino/dbname/collection/doctype/filename
do the job. Note that you have to replace the inoid with the ino:id attribute the picture is stored with. Alternatively you can assign filenames to your documents.
To get the picture stored with ino:id=4 you type
http://hostname/tamino/dbname/collection/doctype/@4
Give this URL to an JLabel with the IconImage, and you’re done.
#webMethods-Tamino-XML-Server-APIs#API-Management#webMethods