This project has moved and is read-only. For the latest updates, please go here.

possible to store binary data in PersistentDictionary?

Jun 15, 2012 at 4:34 PM

Is there any way to store binary data in PersistentDictionary?  I understand why the limitation of only storing immutable types has been put in place, and why byte[] is therefore not supported, but the ability to store blobs would make this class so much more powerful.  Right now the best solution I've come up with is base64 encoding into a string - not very efficient.

What about adding support for an immutable binary data structure like System.Data.Linq.Binary for example?  

Jun 15, 2012 at 9:03 PM

You can actually just comment out the check for immutable types and the code will work.

Also, thanks for pointing out System.Data.Linq.Binary -- I didn't know about that type.

Jun 16, 2012 at 5:29 PM

Really?  Good to know.

This is really a very useful library.  Thanks for creating it and making it available!