If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Problem managing BLOB data types in udf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-04-06, 08:06
ipsca ipsca is offline
Registered User
 
Join Date: May 2006
Posts: 2
Problem managing BLOB data types in udf

Hello,

I am developing with c.

I have tryied manage a blob data with c.

But the dll don't execute the function and it give timeout.

Anybody known how can i work with this data.

I have pasted the source code above of this email

Thanks you very much

Ruben


--------Begin Source Code------------


unsigned char *pTmp;

EXEC SQL BEGIN DECLARE SECTION;
sql type is blob(1M) bufferaux;
EXEC SQL END DECLARE SECTION;

debug("After declare section");
strncpy(serialaux,serial,10);
debug("Before SQL select");
EXEC SQL SELECT SDB into :bufferaux FROM TOKENS WHERE SERIE=:serialaux;
debug ("Keep memory for pTmp");
pTmp = (unsigned char *)malloc(bufferaux.length);
debug("Fill with 0 pTmp");
memset(pTmp, 0, bufferaux.length);
debug("Copy buffer in pTmp");
pTmp = bufferaux.data;

--------End Source Code------------
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On