Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: JayBee on April 04, 2013, 02:46:25 am

Title: Decoding Audit contents in t_snapshot
Post by: JayBee on April 04, 2013, 02:46:25 am
I would like to get a look at the contents of BinContent1 and BinContent2 in t_snapshot. Not sure how it is encoded and how to go about decoding it. Anyone have any tips?
Thanks
JB
Title: Re: Decoding Audit contents in t_snapshot
Post by: qwerty on April 04, 2013, 04:34:45 am
It's base64 encoded containing a zip with a str.dat file.

q.
Title: Re: Decoding Audit contents in t_snapshot
Post by: Ian Mitchell on August 31, 2017, 12:16:26 am
does anyone have any code for this? To go from the BinContent1 to some XML i can use?
Title: Re: Decoding Audit contents in t_snapshot
Post by: qwerty on August 31, 2017, 03:31:34 am
Well, it depends on the language and the libs you have. Basically you use base64 decode which gives you a binary blob. This is pack into an unzipper that should happily detect a single file inside named str.dat. And that's finally what you need.

q.
Title: Re: Decoding Audit contents in t_snapshot
Post by: Ian Mitchell on August 31, 2017, 08:11:02 pm
I get the basic idea. It's just that I need some C# or VB.net to get it done. Do you have anything ?
Title: Re: Decoding Audit contents in t_snapshot
Post by: qwerty on August 31, 2017, 08:52:24 pm
Unfortunately no. Geert could be of help (but I guess he's on summer vacation).  I only could give advice for Perl and Python.

q.
Title: Re: Decoding Audit contents in t_snapshot
Post by: Ian Mitchell on April 16, 2018, 11:12:03 pm
OK - I now have code to extract this, if anyone ever needs it.
Title: Re: Decoding Audit contents in t_snapshot
Post by: Phosis on April 17, 2018, 02:17:30 am
I'd be interested in that, if possible.  Haven't worked with base 64 decoding before.
Title: Re: Decoding Audit contents in t_snapshot
Post by: qwerty on April 17, 2018, 07:01:27 am
Base64 is simple. You can use notepad++'s MIME tools base64 en-/decode for a manual approach.

q.
Title: Re: Decoding Audit contents in t_snapshot
Post by: MichaelMurrayNL on June 06, 2025, 07:55:13 pm
OK - I now have code to extract this, if anyone ever needs it.

I know this post if quite old, but would love it if you could share this code.