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.


#TechXchangePresenter
 View Only
  • 1.  Show images???

    Posted Sun December 05, 2004 10:25 PM

    Hi,

    i have stored images in a doctype Non-XML and now i want to show them in java but i dont
    understand how???

    i have this http://localhost/tamino/Cinetheque/cinetheque/image(non-xml)

    can anyone explain me the all stages ( connection, accessor, xquery???) to make this ???



    thanks a lot !!!


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


  • 2.  RE: Show images???

    Posted Tue December 07, 2004 12:05 AM

    Hello Poussin,

    In your-Tamino-Installation-directory, in the directory SDK\TaminoAPI4J\Documentation\inoapi\listings\hello
    there is an example java program that demonstrates this.
    The program will:
    - establish a connection to the Tamino database
    - obtain a non-XML accessor
    - start a local transaction mode and
    o retrieve first object stored
    o update object just inserted
    o on success commit transaction otherwise roll back
    - switch back to auto-commit mode
    - query updated document
    - delete document
    - close the connection

    The program name is ProcessNonXMLGreeting.java

    Rob


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


  • 3.  RE: Show images???

    Posted Tue December 07, 2004 02:14 AM

    thanks a lot …

    but how can i display pictures in a java program???


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


  • 4.  RE: Show images???

    Posted Tue December 07, 2004 03:00 AM

    hi poussing,

    try the java class java.lang.Graphics and the methode drawImage() and follow your way through the rest of the API documentation.

    hope this helps [or did you want to build a swing application].

    gruss,
    andreas f.


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


  • 5.  RE: Show images???

    Posted Tue December 07, 2004 10:34 AM

    Hi

    i want to display a picture in a a web page with jsp !!

    but now i have the image in a outputStream but when i display it it’s not a image but text like this
    ?!!1AQaq? ?


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


  • 6.  RE: Show images???

    Posted Tue December 07, 2004 03:23 PM

    hi poussing,

    taking the aspect of JSP aside, do I assume correctly that the result(!) of the jsp operation will be a served html page that somewhere along the line contains an <image …/> tag in which the desired image should be shown.

    if this is your scenario and you want to access the image as part of an ongoing database connection that is controlled by the API, i simply don’t see how it should be done, other than within the code of the jsp unloading/reading the picture from tamino, writing it to some kind of images directory of the webserver and referencing it completely outside the scope of tamino.

    if the above is your scenario, but you dont care about transactionality of access to the image, then you can probably - in the image tag - simply put the url as you are stating it yourself into the image tag and you should be done.

    hope this helps.

    gruss,
    andreas f.


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