Any chance to get a var() from PropertySet?


#1

I stored a Binary-Data var() in PropertySet, but the way back seems not to be supported?

getValue() returns only a String, i need something like var() getValueAsVar()... 

 

PS:

Yes, i need to store a piece of unstructured binary data into a property-file..., and i have good reasons ;)

Yes, i could convert it into to String and back, but i think a var() performs better

 

 


#2

It's all strings in the PropertySet class, I'm afraid. Maybe use a ValueTree or NamedValueSet instead?


#3

Ah thanks, i didn't realized it is based on a string-based storage-class (i use PropertiesFile, which offers storeAsBinary-Format, so this could be unclear, if the algorithm depends on exact restoration (for example float<->string conversion inaccuracy)