Home » U++ Library support » U++ Core » Binary file to JSON
Binary file to JSON [message #40780] |
Mon, 16 September 2013 08:23  |
iST1
Messages: 107 Registered: August 2013
|
Experienced Member |
|
|
I'm trying to store binary file as json and load from it:
FileIn fs(someFile);
String buf = fs.Get(size);
ValueArray json = ParseJSON(Json()("buf", buf).ToString());
ASSERT(json.GetCount() == 1);
String s = json[0];
ASSERT(s == buf);//=>break: s contain at end some like 'f', 'r', 'e', 'e'
[Updated on: Mon, 16 September 2013 08:23] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 14:48:57 CEST 2025
Total time taken to generate the page: 0.00647 seconds
|