webMethods

webMethods

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

An Image Displaying in Browser Using XQuery?

  • 1.  An Image Displaying in Browser Using XQuery?

    Posted Tue January 30, 2007 05:27 PM

    Hi!

    I’m trying to get an image to display in a web browser using XSLT / XQuery.

    I can’t even get the image to show in the browser with just a simple XQuery URL. I only get the XML text. Here’s the URL I typed in:

    http://hsicomp01/tamino/idd_db/idd_collection?_xquery= {?serialization method=“xml” media-type=“image/png”?} for $q in input()/tamino-external where tf:getInoId($q) = 35 return $q

    I also tried http://hsicomp01/tamino/idd_db/idd_collection/tamino-external/@35 and still just got xml text

    How can I get an image to show as an image and not XML tag text?

    Thank You!


    #API-Management
    #Tamino
    #webMethods


  • 2.  RE: An Image Displaying in Browser Using XQuery?

    Posted Tue January 30, 2007 05:40 PM

    you must set the content type (MIME type) correctly. See documentation on serialization in the Tamino documentation

    Regards

    Harald


    #webMethods
    #Tamino
    #API-Management