ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Tip: Make a blob string readable

Post new topic  Reply to topic
 Tip: Make a blob string readable « View previous topic :: View next topic » 
Author Message
Herbert
PostPosted: Mon Feb 08, 2010 2:57 am    Post subject: Tip: Make a blob string readable Reply with quote

Centurion

Joined: 05 Dec 2006
Posts: 146
Location: Leersum, The Netherlands

A handy tip if you want to translate BLOB values like "e0e1e2e3e4e5e6e7e8e9eaebecedeeef" to a readable string when you are analyzing logs or so.

- Open UltraEdit and create a file with just one space
- Optional: Switch to EBCDIC with "File" - "Conversions" - "ASCII to EBCDIC"
- Execute Ctrl-H, Ctrl-A, Ctrl-R
- ASCII: Replace '20' with the BLOB string.
- EBCDIC: Replace '40' with the BLOB string.
- Go with Ctrl-H back to normal mode.
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Mon Feb 08, 2010 3:04 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I find this little snippet of Perl to be quite handy.
Code:
while (<>) {
   print pack("H*",$_);
}
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Mon Feb 08, 2010 4:03 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

I find online base64 decoders to be quite helpful. Such as:
http://home2.paulschou.net/tools/xlate/

Just paste it into the Base64 bit and decode. Jobs a good 'un.
Back to top
View user's profile Send private message
Gert-Jan
PostPosted: Mon Feb 08, 2010 7:50 am    Post subject: Re: Tip: Make a blob string readable Reply with quote

Newbie

Joined: 30 Sep 2004
Posts: 5
Location: The Netherlands

Herbert wrote:
A handy tip if you want to translate BLOB values like "e0e1e2e3e4e5e6e7e8e9eaebecedeeef" to a readable string when you are analyzing logs or so.


Hi all,

I created a small utility program for this problem quite recently.

It's called Hexdump2Text. It doesn't just convert a BLOB to EBCDIC or ASCII. It also takes an user selected encoding into account.
See also: http://www.gjdenbesten.nl/Hexdump2Text.html

The first version (1.0.0) was released under the GPL v3 at January 31th, 2010. Version 1.0.1 was released yesterday.

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Tip: Make a blob string readable
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.