PDA

Ver la Versión Completa : Campos Blob con DBExpress


lgluna
14-05-2003, 17:44:41
Ayuda:

Actualmente estoy utilizando DBExpress para conectarme con DB2 pero tengo un problema.

Cuando utilizo campos Blob(para imagenes) me marca el siguiente error:

Cwbdb_RetrieveLobData Returned Error Code 6038
Cause: The Length of the parameter value is either too Short o to Long

Estoy utilizando el siguiente DBEXpress:

****************************************************
IBM Client Access/400 driver for dbExpress
DBEXPCA400 Delphi 7 or 6 and C++Builder 6 Release Notes
==============================================
Copyright © 2001-2003 Peter Sawatzki (Peter@Sawatzki.de)
Mail: Buchenhof 3, 58091 Hagen, GERMANY
WWW: http://www.sawatzki.de
Version: 2.0.72
Date: 08.05.2003
****************************************************

y aparentemente si soporta campos Blob por lo siguiente:

****************************************************
LOB support
-----------
If using Client Access/400 V5R1 or later and OS/400 V4R5 or later, LOBs may
be utilized. By default LOBs are returned as LOB locators from AS/400 and fetched on
demand. This is also the default mode implemented in dbexpca400. There is an option
implemented in this driver that enables returning of "Inline" BLOBs as part of the
result set. This means that the BLOB is always fetched. If it makes sense to your
application, you may set a LOB threshold. If you set LOB threshold to for example
16384 by appending /lobthreshold=16384 to ROLENAME parameter, every LOB that is
*defined* as being smaller than 16KB, is returned inline and fetched.
****************************************************

Asi lo tengo configurado de mi dbxdrivers:

****************************************************
[CA400]
GetDriverFunc=getSQLDriverCA400
LibraryName=dbexpca400.dll
VendorLib=cwbdb.dll
Database=192.1.1.2
User_Name=
Password=
ErrorResourceFile=
LocaleCode=0000
BlobSize=-1
RowsetSize=-1
RoleName=
CA400 TransIsolation=DirtyRead
CommitRetain=True
AutoCommit=True
Custom String=/trace=0
Connection Timeout=-1
Trim Char=False
****************************************************

Pero me sale ese erro y ya le intente de todas maneras y nada no se si alguien me pueda ayudar que es lo que puedo hacer, ya le intete de todo, no se si tenga que configurara algo del dbxdrivers o que?

al campo Blob ya le intete poniendo le hasta 50 m que hago. gracias.