Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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
-
It's base64 encoded containing a zip with a str.dat file.
q.
-
does anyone have any code for this? To go from the BinContent1 to some XML i can use?
-
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.
-
I get the basic idea. It's just that I need some C# or VB.net to get it done. Do you have anything ?
-
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.
-
OK - I now have code to extract this, if anyone ever needs it.
-
I'd be interested in that, if possible. Haven't worked with base 64 decoding before.
-
Base64 is simple. You can use notepad++'s MIME tools base64 en-/decode for a manual approach.
q.
-
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.