21 Feb
2007
21 Feb
'07
9:44 p.m.
I've modified my code and did something like this. std::stringstream ss ; boost::archive::binary_oarchive oa (ss) ; os << class_obj ; so i'm sending data to db api as (void *)ss. To retrieve data, I'm using something like this data=db.get_data() ; istringstream is (ios_base::binary) ; is << (char *)data.get_data() ; boost::archive::binary_iarchive (is) ; This time I'm getting stream_error exception. what I'm not able to figure out was how can i create a stringstream object from void * pointer. Thanks, Surya