Add binary data support for RPC data_fetch.

This commit is contained in:
Arthur Britto
2012-06-07 13:06:26 -07:00
parent 813bdd532e
commit 24c7689808

View File

@@ -135,7 +135,8 @@ bool Wallet::dataFetch(const std::string& strKey, std::string& strValue)
{
std::string strPublicKey, strPrivateKey;
db->getStr("Value", strValue);
std::vector<unsigned char> vucData = db->getBinary("Value");
strValue.assign(vucData.begin(), vucData.end());
db->endIterRows();