View Single Post
Old 15-Oct-2007, 03:24 AM   #2 (permalink)
Anilrgowda
Administrator
 
Anilrgowda's Avatar

Posts: 18,715
Join Date: Jan 2006
Rep Power: 10 Anilrgowda is on a distinguished road

IM:
Default Re: ORA-06502: PL/SQL: numeric or value error: character string buffer too small when

I think that your problem is in this piece of code:

IS
raw_data LONG RAW;
rawlen NUMBER;
hex_data VARCHAR2(32760); --<<---------- Variable to small ? Try: hex_data CLOB
char_data VARCHAR2(32760);
loop_counter NUMBER;
BEGIN

-- Get the blob using the rowid passed in.
-- Will always retrun only one row.

SELECT ole_object_blob
INTO raw_data
FROM tidblob
WHERE v_object_id = rowid;

-- Convert the raw data to hex.
hex_data := rawtohex(raw_data);
rawlen := length(hex_data); --<<------ DBMS_LOB.GET_LENGTH instead


------------------


Anilrgowda is offline   Reply With Quote