You can use the sdb.dbapi module to convert LOB values.
You can transfer LOB values as input parameters as follows:
As strings
As callable objects that are defined similar to the read method of file objects (an integer parameter defines how many characters the system reads and the end of the input stream is indicated by an empty character string).
SAP MaxDB LOB values are returned as instances of the SapDB_LongReader class (sdb.sql module). This class implements the read method.