Forum BigDB Parse byte array

Discussion and help relating to the PlayerIO database solution, BigDB.

Parse byte array

Postby lauromrcruz » May 1st, 2018, 8:00 pm

Hi

I have a byte array on my table when I backup I receive this:

"AdminConfig" : {
"pk" : "AdminConfig",
"value" : DBUBAABFY29ub21pY3MgKGNvZGlnb3MgNTArKQ0KaWQgTjpub21lIEs6a2luZCBTOnNpemUgSTppY29uZQ0KS2luZHM6DQogMD1vdXRyb3MNCiAxPWN1cnJlbmN5ID0gbW9lZGFzIGRlIGNvbXByYQ0KIDI9ZHVzdCAgICAgPSBww7NzIG1hZ2ljb3MgdXNhZG9zIGVtIGNvbXBvc2nDp8OjbyBkZSBwcm9kdXRvcw0KIDM9bWF0ZXJpYWwgPSBtYXRlcmlhaXMgY29tbyBtYWRlaXJhDQogND1tZXRhbCAgICA9IG1ldGFpcyBkaXZlcnNvcw0KIDU9cmVhZ2VudCAgPSBwb8Onw7VlcywgcXVpbWljb3MNCg0KUwAAAFJlY2lwZUxpc3QgKGNvZGlnb3MgNTArKQ0KY2FydGFzIGVzcGVjaWZpY2FzIG5vbWUgPSBjYXJmdE5OTk4NCk5OTk4gPSBpZCBkYSBjYXJ0YQ0KnwAAAEVsb1BvaW50c1RhYmxlDQoNCkluaWNpYWwgRWxvIElkKGluY2x1c2l2ZSkgPSBpaWQNCkZpbmFsIEVsbyBJZCAoaW5jbHVzaXZlKSA9IGZpZA0KUG9udG9zIGRlIHZpdG9yaWEgPSBwdg0KUG9udG9zIGRlIGRlcnJvdGEgPSBwZA0KDQppaWQsZmlkLHB2LHBkDQoxLDUsNDAsMjANCg==
},

So if I want recover my DB how can I parse my byte array back?

By the way these is the information on the object:

0C 15 01 00 00 45 63 6F 6E 6F 6D 69 63 73 20 28 63 6F 64 69 67 6F 73 20 35 30 2B 29 0D 0A 69 64 20 4E 3A 6E 6F 6D 65 20 4B 3A 6B 69 6E 64 20 53 3A 73 69 7A 65 20 49 3A 69 63 6F 6E 65 0D 0A 4B 69 6E 64 73 3A 0D 0A 20 30 3D 6F 75 74 72 6F 73 0D 0A 20 31 3D 63 75 72 72 65 6E 63 79 20 3D 20 6D 6F 65 64 61 73 20 64 65 20 63 6F 6D 70 72 61 0D 0A 20 32 3D 64 75 73 74 20 20 20 20 20 3D 20 70 C3 B3 73 20 6D 61 67 69 63 6F 73 20 75 73 61 64 6F 73 20 65 6D 20 63 6F 6D 70 6F 73 69 C3 A7 C3 A3 6F 20 64 65 20 70 72 6F 64 75 74 6F 73 0D 0A 20 33 3D 6D 61 74 65 72 69 61 6C 20 3D 20 6D 61 74 65 72 69 61 69 73 20 63 6F 6D 6F 20 6D 61 64 65 69 72 61 0D 0A 20 34 3D 6D 65 74 61 6C 20 20 20 20 3D 20 6D 65 74 61 69 73 20 64 69 76 65 72 73 6F 73 0D 0A 20 35 3D 72 65 61 67 65 6E 74 20 20 3D 20 70 6F C3 A7 C3 B5 65 73 2C 20 71 75 69 6D 69 63 6F 73 0D 0A 0D 0A 53 00 00 00 52 65 63 69 70 65 4C 69 73 74 20 28 63 6F 64 69 67 6F 73 20 35 30 2B 29 0D 0A 63 61 72 74 61 73 20 65 73 70 65 63 69 66 69 63 61 73 20 6E 6F 6D 65 20 3D 20 63 61 72 66 74 4E 4E 4E 4E 0D 0A 4E 4E 4E 4E 20 3D 20 69 64 20 64 61 20 63 61 72 74 61 0D 0A 9F 00 00 00 45 6C 6F 50 6F 69 6E 74 73 54 61 62 6C 65 0D 0A 0D 0A 49 6E 69 63 69 61 6C 20 45 6C 6F 20 49 64 28 69 6E 63 6C 75 73 69 76 65 29 20 3D 20 69 69 64 0D 0A 46 69 6E 61 6C 20 45 6C 6F 20 49 64 20 28 69 6E 63 6C 75 73 69 76 65 29 20 3D 20 66 69 64 0D 0A 50 6F 6E 74 6F 73 20 64 65 20 76 69 74 6F 72 69 61 20 3D 20 70 76 0D 0A 50 6F 6E 74 6F 73 20 64 65 20 64 65 72 72 6F 74 61 20 3D 20 70 64 0D 0A 0D 0A 69 69 64 2C 66 69 64 2C 70 76 2C 70 64 0D 0A 31 2C 35 2C 34 30 2C 32 30 0D 0A

Thank you
lauromrcruz
 
Posts: 21
Joined: July 10th, 2013, 3:02 pm

Re: Parse byte array

Postby Henrik » May 16th, 2018, 3:35 am

It's Base64 encoded, so just run a Base64 decode to get your byte array.
Henrik
.IO
 
Posts: 1822
Joined: January 4th, 2010, 1:53 pm

Re: Parse byte array

Postby lauromrcruz » May 16th, 2018, 9:21 pm

easy... when is knowing...

Thank you a lot.
lauromrcruz
 
Posts: 21
Joined: July 10th, 2013, 3:02 pm


Return to BigDB



cron