We have an application that takes user data in C#, serializes it and puts it in a database.
I need to write an admin program in Python that takes that value and deserialize it. I’ve tried using Pickle but I believe the format is different, because I keep getting errors.
Is this doable?
Thanks!
Edit 1: The type is binary — here is the c# code that constructs it (where o is the object):
using ( MemoryStream stream = new MemoryStream( ))
{
IFormatter myformatter = new BinaryFormatter();
myformatter.Serialize(stream, o);
return stream.ToArray();}
Use IronPython so you can just use the .NET framework, like you did to save the data.