Read first 1kb of a blob from oracle?

DBMS_LOB. SUBSTR will, for a BLOB, return a RAW. Most environments will render that in hex.

You can use the DUMP function to view it in some other formats select dump(dbms_lob. Substr(product_image,10,1),10), dump(dbms_lob. Substr(product_image,10,1),16), dump(dbms_lob.

Substr(product_image,10,1),17) from APEX_DEMO. DEMO_PRODUCT_INFO where product_id = 9 This returns the first 10 bytes of the BLOB in decimal (eg 0-255), hex and character. The latter may throw some unprintable garbage to the screen and, if the client and database character sets do not match, undergo some 'translation You can use UTL_RAW.

CAST_TO_VARCHAR2 which may give you what you want select utl_raw. Cast_to_varchar2(dbms_lob. Substr(product_image,10,1)) chr from APEX_DEMO.

DEMO_PRODUCT_INFO where product_id = 9.

DBMS_LOB. SUBSTR will, for a BLOB, return a RAW. Most environments will render that in hex.

You can use the DUMP function to view it in some other formats. Select dump(dbms_lob. Substr(product_image,10,1),10), dump(dbms_lob.

Substr(product_image,10,1),16), dump(dbms_lob. Substr(product_image,10,1),17) from APEX_DEMO. DEMO_PRODUCT_INFO where product_id = 9; This returns the first 10 bytes of the BLOB in decimal (eg 0-255), hex and character.

The latter may throw some unprintable garbage to the screen and, if the client and database character sets do not match, undergo some 'translation'. You can use UTL_RAW. CAST_TO_VARCHAR2 which may give you what you want.

Select utl_raw. Cast_to_varchar2(dbms_lob. Substr(product_image,10,1)) chr from APEX_DEMO.

DEMO_PRODUCT_INFO where product_id = 9.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions