Hi All,
Problem Statement:
I have a field with BLOB data type in DB2 database, I want to extract this blob and convert it to Text. The text data after the conversion will be in Japanese characters. How can I write a select with the conversion from Blob to Text and have the proper conversion from BLOB to Japanese Text.
Any quick help is highly appreciated.
Regards,
Jitesh

Views: 887

Reply to This

Replies to This Discussion

Hi All,
I have been working on this requirement and could manage to convert blob to hexadecimal and when I convert the hexadecimal value to text on online converters (from hexadecimal to string) its giving me the desired results.
Now, could anyone please help in converting hexadecimal to string/ text at the query level or through any script?

Thanks in advance.
Regards,
Jitesh
I finally managed to convert the blob into text (Japanese Characters). Below are step I could figure out:
1. Convert to BLOB to Hexadecimal. Simple conversion can be done at SQL query level.
2. Once you have the hexadecimal values, you can write a xxd command on unix to convert it to text.

Regards,
Jitesh

RSS

Latest Activity

Diego Cardalliaguet liked Diego Cardalliaguet's event EMEA IBM Db2 Analytics Accelerator Users Group meeting 2021
13 hours ago
An event by Diego Cardalliaguet was featured
Thumbnail

EMEA IBM Db2 Analytics Accelerator Users Group meeting 2021 at Video conference

May 18, 2021 from 10am to 4:15pm
13 hours ago
Diego Cardalliaguet posted an event
Thumbnail

EMEA IBM Db2 Analytics Accelerator Users Group meeting 2021 at Video conference

May 18, 2021 from 10am to 4:15pm
13 hours ago
Diego Cardalliaguet liked Surekha Parekh's blog post Register Now Enterprise Data & AI Virtual Symposium - 27th April 2021
14 hours ago
Diego Cardalliaguet liked Surekha Parekh's event 2021 April 27th Enterprise Data & AI Virtual Symposium
14 hours ago
Udo Brede liked Jim Wankowski's blog post Leveraging your Db2 Skills with Big Data
16 hours ago
long lin posted a discussion
18 hours ago
blon sin posted a discussion
yesterday
A blog post by Surekha Parekh was featured
Tuesday
blon sin liked Jim Wankowski's blog post Leveraging your Db2 Skills with Big Data
Monday
Jonathan Sloan liked Surekha Parekh's event 2021 April 27th Enterprise Data & AI Virtual Symposium
Apr 14
A blog post by Surekha Parekh was featured
Apr 14
2 events by Surekha Parekh were featured
Apr 14
Jim Reed liked Umesh J Mehta's event TRIDEX Db2 for z/OS Q22021 Meeting
Apr 13
An event by Umesh J Mehta was featured

TRIDEX Db2 for z/OS Q22021 Meeting at Virtual Event

May 20, 2021 from 9:30am to 1:15pm
Apr 13
Jim Reed liked Manuel Gomez Burriel's event IDUG Db2 North America Virtual Tech Conference
Apr 12

Bringing Db2 enthusiasts together virtually. Expert or novice, distributed or mainframe, this is the place for everything DB2.

Forum

who opened the scoring from the penalty spot

Started by long lin in What's hot ? 18 hours ago. 0 Replies

fotbollströja barn eget tryck Lionel Messi opened the scoring from the penalty spot, but that was as good as it got for Ronald Koeman's side as Mbappe took over to evoke memories of recent defeats to…Continue

Fact.MR redefines the way

Started by blon sin in What's hot ? yesterday. 0 Replies

New York, April 20, 2021 - The primary reason for the failure of startups is not lack of funding or intense competition. The main reason is "misunderstanding of market demand."Therefore, for start-ups, it is important to thoroughly study the…Continue

© 2021   Created by Surekha Parekh.   Powered by

Badges  |  Report an Issue  |  Terms of Service