When storing Non XML documents you can specify a document name (actually the same holds true for XML). So you store a document (_process) with a URL like:
(and the payload will be the binary gif image)
This will store the Gif as nonXML, assign a ino:id to it (say 1) and associate a document name to it (JSmith_Clavical.gif).
You now have several options:
1) If you know the ino:id as you have mentioned already you can simply issue the following URL to get the image:
2) If you know the name that you assigned (say this may be stored in an XML Document somewhere) you can issue the following URL:
3) If you know the name and want the ino:id you could query such as :
<A HREF=“http://localhost/tamino/myDB/Collection?_xql=XRay[@ino:docname=“JSmith_Clavical.gif”” TARGET=_blank>]http://localhost/tamino/myDB/Collection?_xql=XRay[@ino:docname=“JSmith_Clavical.gif”]