const concurrency::streams::istream is = message.body();
concurrency::streams::stringstreambuf rbuf;
is.read_to_end(rbuf).then([=](size_t s)
{
concurrency::streams::basic_ostream<char> os = rbuf.create_ostream();
std::string body = rbuf.collection();
cout << "(((( "<< body << " ))))" << std::endl;
std::ofstream file;
file.open("ddd.dyz", std::ios::out | std::ios::binary);
if (!file.good())
{
return false;
}
file.write(body.c_str(), body.size());
file.close();
});