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 :confused: :confused: :confused: :confused:


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


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

    Posted Tue October 02, 2001 02:16 PM

    I think that you must provide the type of non XML at storage time. The following works for me:

    TaminoNonXml nonX = new TaminoNonXml(TAMINO_DB);

    String gifFile = “Smiley.gif”;
    String saveName = “GIF1”;

    TaminoResult tr = nonX.setNonXML(“/ino:etc/ino:nonXML/” + saveName, gifFile, “image/gif” );
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    tr = nonX.getNonXML(“/ino:etc/ino:nonXML/” + saveName, bos);
    tr = nonX.getNonXML(“/ino:etc/ino:nonXML/” + saveName, “recovered.gif”);
    System.out.println("recovered: "+bos.size());


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