Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Binary file to JSON
Binary file to JSON [message #40780] Mon, 16 September 2013 08:23 Go to previous message
iST1 is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Time::Set(int64 scalar) unexpected results
Next Topic: Link problem on linux
Goto Forum:
  


Current Time: Mon Apr 29 13:13:00 CEST 2024

Total time taken to generate the page: 0.02992 seconds