What is the appropriate method of storing a blob (a large string of bytes) in (or with) application settings in .NET?
I can think of several approaches, but none that seem as simple as it should be.
- Storing a base64 or hex string
- Slightly unwieldy for serialization/deserialization
- Storing a file beside the user.config (or app.config) file and managing it manually
- I don't know how to locate the user.config file programmatically
- Storing a file elsewhere in AppData and managing it manually
- Prevents my application data from being in one spot
I need to be able to change the value at runtime, and have distinct values for each user, because this data will have tight ties to what is in user.config.
What is the ideal method for storing such a value?