Re: [Orclib-users] OCILIB : Problem with OCI_LOB ( blob)
Open source C and C++ library for accessing Oracle Databases
Brought to you by:
vince_del_paris
|
From: Coulibaly O. D. <cou...@ca...> - 2011-03-11 06:34:12
|
Hi,
I change like this :
....
else if (OCI_ColumnGetType(col)==OCI_CDT_LOB)
{
OCI_Lob * data = (OCI_Lob *) OCI_BindGetData(bnd);
OCI_Lob **photo = (OCI_Lob **)data;
boolean a = OCI_LobAssign(photo[pos], OCI_GetLob(rs_src, i));
}
But OCI_LobAssign always return FALSE in my case.
Regards
2011/3/10, vincent rogier <vin...@ya...>:
> you can't do :
>
> photo[pos] =OCI_GetLob(rs_src, i);
>
> you should do ;:
>
> OCI_LobAssign(photo[pos], OCI_GetLob(rs_src, i));
>
> 2011/3/10 Coulibaly Ouekalo Daniel <cou...@ca...>
>
>> Hi,
>>
>> I have a problem when i try to insert a array of blob.
>> There is a part of code :
>>
>> if (OCI_IsNull(rs_src, i))
>> {
>> OCI_BindSetNullAtPos(bnd, pos);
>> }
>> else if (OCI_ColumnGetType(col)==OCI_CDT_LOB)
>> {
>> OCI_Lob * data = (OCI_Lob *) OCI_BindGetData(bnd);
>> OCI_Lob **photo = (OCI_Lob **)data;
>> photo[pos] =OCI_GetLob(rs_src, i);
>> }
>> else
>> {.....}
>>
>> ........
>> OCI_Execute(st)
>>
>> the OCI_Execute(st) encounter errors
>>
>>
>> ------------------------------------------------------------------------------
>> Colocation vs. Managed Hosting
>> A question and answer guide to determining the best fit
>> for your organization - today and in the future.
>> http://p.sf.net/sfu/internap-sfd2d
>> _______________________________________________
>> Orclib-users mailing list
>> Orc...@li...
>> https://lists.sourceforge.net/lists/listinfo/orclib-users
>>
>
>
>
> --
> Vincent Rogier
>
|