IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How to display .jpg file stored with NonXml in Tamino databa

  • 1.  How to display .jpg file stored with NonXml in Tamino databa

    Posted Wed September 19, 2001 03:43 PM

    Hi,I had sored a lot of .jpg file in Tamino database.and the collection is metadata,the doctype is images.
    Now I want to show it by java ?How can i do?Is there a demo who can give me?
    Thanks !
    my thought is it may be like this:

    TaminoNonXml tr_nonxml=new TaminoNonXml(“http://localhost/tamino/digital/metadata/images”);
    TaminoResult ts_nonxml= tr_nonxml.getNonXML(“http://localhost/tamino/digital/metadata/images”, “l1.jpg”);


    Help!Any suggestion would be a happiness!
    Regards
    melon


    #API-Management
    #webMethods
    #webMethods-Tamino-XML-Server-APIs


  • 2.  RE: How to display .jpg file stored with NonXml in Tamino databa

    Posted Wed September 19, 2001 04:07 PM

    Hi ,
    Maybe this can help you , is a solution for viewing from an applet:
    AppletContext ctx = getAppletContext();
    String mainframe =“mainFrame”;
    URL page_to_show =URL(“http://tamino.aps.com.ve/apsdemo/delitosDialog.htm”);
    ctx.showDocument(page_to_show,mainframe);
    On which you can use instead of “mainframe” _blank(a new web page), _self(on the same page), or another frame within the app.
    Hope this help
    If you need more code or help , please let me know!
    Jonathan Saul Torres Diaz
    jtorres@aps.com.ve

    Jonathan Saul Torres Diaz
    Consultant
    mail me at:jtorres@aps.com.ve
    jtorres@xml.com.ve


    #webMethods-Tamino-XML-Server-APIs
    #webMethods
    #API-Management


  • 3.  RE: How to display .jpg file stored with NonXml in Tamino databa

    Posted Sat September 22, 2001 11:33 PM

    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