Hi,
sorry, but I have a TARZAN english, just I try... :-)
Well, I have problem to read a BLOB using OLEDB, this is my code:
Set sLogoEmpresa = ''
If SqlPrepare( hSql, '
SELECT logo_empresa
FROM empresa
INTO :sLogoEmpresa
WHERE rut = :nPrmRutEmpresa' )
If SqlSetLongBindDatatype( 1, DT_Binary )
If SqlExecute( hSql )
Set nEof = 0
Call SqlFetchNext( hSql, nEof )
If Not SalPicSetString( picLogoEmpresa, 3, sLogoEmpresa )
Call SalMessageBox('No se pudo cargar la imagen','Error (Byte)',0)
Else
Call SalMessageBox( 'LongBindDatatype' ,'Error' ,0 )
In run time, send error when call SqlExecute:
"(-611) Scroll cursor can't select blob columns".
I use Informix 9.4, TD 3.1, OLEDB. This code work ok in TD 1.5 (Router Native)