You can also use SOA Gateway 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'll use the popular Firefox browser and the SOA Gateway 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.
Start the Control Center and add a new Web Service.
Enter the following information
Name: adabasTutorial_blobs
DataView : Select 'adabas_photoblobs', which is one of the sample definitions delivered with SOA Gateway
DatabaseId: 212 ( or the DBID relevant on your system )
FileNumber: 90
Publish your changes to the server.
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 SOA Gateway is running.
If there is a blob associated with this record, the following is returned
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.
Here you can see a JPEG file opened up in a new tab in firefox after the LOB link was clicked.