cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve the data and see for Blob Object column using FlexibleSearch from HAC

Former Member
0 Kudos
5,391

How to retrieve the data and see for Blob Object column using FlexibleSearch from HAC

Thanks in advance.

Former Member
0 Kudos

Did you ever figure out how to do this? I am facing an issue where this would be very helpful.

Former Member
0 Kudos

Anyone from hybris???

former_member620692
Active Contributor
0 Kudos

In addition to the answer I have provided on this page, I have also provided the answer to another related question at https://answers.sap.com/questions/12770772/how-to-verify-whether-a-string-exists-in-string-co.html?c...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If we are using oracle database we can use below sql query.

SELECT dbms_lob.substr(p_endmessage,3000) FROM processes item_t0

Former Member
0 Kudos

Hi Vinay, Is there any possibilities to write a flexible search query for retrieving the data inside BLOB object?

Answers (1)

Answers (1)

former_member620692
Active Contributor

With MySQL:

 SELECT CAST({urlPatterns} AS CHAR(10000) CHARACTER SET utf8) FROM {CMSSite}

With Oracle:

 SELECT UTL_RAW.CAST_TO_VARCHAR2({urlpatterns}) FROM {CMSSite}

With HANA:

 SELECT CAST(BINTOSTR(CAST({urlPatterns} AS BINARY)) AS VARCHAR) FROM {CMSSite}

Note: The SQL for MySQL and Oracle are already tested but I haven't tested the SQL for HANA yet.

0 Kudos

Hi Arvind,

Any idea how to do this with SAP Hana?

former_member620692
Active Contributor
0 Kudos

I have updated my answer. Please do let me know if it works for you.

former_member620692
Active Contributor
0 Kudos

Hi - did it work for you?

denisacernea
Discoverer
0 Kudos

No, for Hana I receive: FlexibleSearch query is not legal, Exception message: Invalid CESU-8 sequence