Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Convert CHAR to BLOB?

Convert CHAR to BLOB?

From: <raedwa01_at_gmail.com>
Date: 6 Jun 2005 10:12:35 -0700
Message-ID: <1118077955.527937.65990@g44g2000cwa.googlegroups.com>


I have a stored procedure that takes a blob as an input parameter. I check to see if the parameter is null by using CURSOR passCur IS

      SELECT NVL(PASSWORD, 'P_at_ssw0rd')
FROM DUAL; PASSWORD is my Blob (it's a bytestream of a hashed password). If nothing is provided, i want to put the word P_at_ssw0rd into the field.

I open the cursor and try to fetch the result into a temporary variable and always get this error.
Error -932: ORA-00932: inconsistent datatypes: expected BLOB got CHAR

Is there something i can do to make sure i put in a BLOB value?

Thanks,
Rob Received on Mon Jun 06 2005 - 12:12:35 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US