Portus Version 2018-08-24
 

Accessing LOBs using a browser

You can also use Portus to retrieve LOBs from Adabas into a web browser. This can be any browser of your choice, for example IE running on Windows, retrieving LOBs from Adabas running on z/OS.

In the tutorial below, we will use the popular Firefox browser and the Portus running on z/OS.

This tutorial assumes you've already got some LOBs stored in your database. See the previous tutorial to find out how to do this.

  1. Start the Control Center and add a new resource.

    Enter the following information

    • Name: adabas_blobs
    • Assign the'adabas_photoblobs' DataView, which is one of the sample definitions delivered with Portus, to the service as described here
    • DatabaseId: 212 ( or the DBID relevant on your system )
    • FileNumber: 90

    Publish your changes to the server.

  2. Start your browser, and enter the following URL

    http://soagate:56000/adabasTutorial_blobs?GET&personnel_id=99880000

    Replacing "soagate:56000" with the hostname and port where Portus is running.

  3. If there is a blob associated with this record, the following is returned

  4. Click on the link "Click here for blob" to display the LOB file in the browser.

    Note: The LOB will open automatically in your browser, if it of a MIME type that your browser understands. Commonly used types are PDF, WMV, JPEG, etc. Refer to your browser documentation if you need more information.

  5. Here you can see a JPEG file opened up in a new tab in firefox after the LOB link was clicked.


Ostia
www.ostiasolutions.com
Copyright @ 2006-2018 Ostia Software Solutions Limited.