PreviousNextIndex

Retrieving BLOB data

To retrieve BLOB data, the db query operation is executed. The variable contains a base64 encoded string, which you have to decode into a byte array.

Example

Alternatively, you can also add .wav files to the database and retrieve it without having to write a Java code as follows:

  1. Assign a URL/file path and name to the variable that maps to the add/update operation.

Note:

Assign the file path relative to the project root.

  1. Since the "query" operation automatically saves the BLOB into a file in the project temp folder, you just have to use the Text Variable and "filename" format for the playback.

You can also change the query behavior by coding using the setCreateTempFileForBlob(boolean flag, String fileType) method inside the dbop Java class.

Example

setCreateTempFileForBlob(false, null) - In this case, you will get back the bytes in Base64.

setCreateTempFileForBlob(boolean true, "gif") - In this case, the file created in the temp directory will have "gif" as the extension.


PreviousNextIndex

©2009, Avaya Inc. All rights reserved.