I have a broken installation of Metalogix Archive Manager (MAM). Sometimes, I need to go and retrieve attachments that this has archived when it was previously working.
The original attachment name can be anything.pdf. The attachment name for an archived PDF looks like this -
The HTTP request for the PDF above -
I would like to know how I can extract the archived attachment name from that giant string.
I've uploaded the GetAttachment.cs file referenced by the GetAttachment.aspx file, as well as the original DLL it came from.
If anyone is interested, I can send over the DLLs.
Ok, I've found some things here using Visual Studio interactive mode.
The Decode6Bit function in EncodeUtils.cs is the key. I've ran that function using the PARAM value above -
> var txt = "003D05g0mg1g04k0fg1204w09w1404Y0gM1904g0fg0N0480cg0M0380dg0Q0340cM0R03o0cM0Q04o0dg0M0480e01403w0dw0M03k0cw0Q03o0d00T03s0d00M04809w1304Y0jw1904g0fg0Q03c0cg0T03k0d00O03g0800w"; > Console.WriteLine(Decode6bit(txt)) TYPE=BH&DOCID=1B10254135634F50B8D860524647740B&CONID=43175424