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

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to convert substring from a BLOB to readable characters?

Re: How to convert substring from a BLOB to readable characters?

From: Vladimir M. Zakharychev <bob_at_dpsp-yes.com>
Date: Thu, 3 Apr 2003 19:22:09 +0400
Message-ID: <b6hjj2$9ve$1@babylon.agtel.net>


> I need to extract a substring from a BLOB using a PL/SQL program. To
> extract the substring from the BLOB, i'm using the dmbs_lob.substr()
> function. Problem is that it gives me a string in hexadecimal
> characters back, while i need the string to be in readable ascii
> format.

Apply UTL_RAW.CAST_TO_VARCHAR2() to the output of DBMS_LOB.SUBSTR() and there you have it.

-- 
Vladimir Zakharychev (bob@dpsp-yes.com)                http://www.dpsp-yes.com
Dynamic PSP(tm) - the first true RAD toolkit for Oracle-based internet applications.
All opinions are mine and do not necessarily go in line with those of my employer.
Received on Thu Apr 03 2003 - 09:22:09 CST

Original text of this message

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