Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Conexión con bases de datos
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Conexión con bases de datos

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 14-05-2003
lgluna lgluna is offline
Registrado
 
Registrado: may 2003
Ubicación: Ags
Posts: 5
Poder: 0
lgluna Va por buen camino
Post Campos Blob con DBExpress

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.
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 08:05:09.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi