3 8 LOB Data Types and Stream Files

LANSA WAM

3.8 LOB Data Types and Stream Files

WAMs allow you to serve stream files that:

  • You don't want to store on your Web server
  • Documents whose contents are stored in your application data base.
  • Documents created on demand.

You can serve the contents of LOB data types (BLOBs and CLOBs) and stream files located in your Application Server with special webroutines.

You create these file serving webroutines by defining the Response parameter in the Webroutine command:

The webroutine can contain RDMLX code to create the contents of the file or determine which file to send.  The only requirement is that you set the ContentFile to the file name that you want to serve.

You can also send the contents of a string. In this case, you need to set the content type. The charset is assumed to be the current encoding. If that is not the case, you need to set the Charset property.

Also see

File Request

LOB/File Content Type

LOB/File Properties

Custom HTTP Headers

CLOBs and Files with Text Content

Compression