From 24c7689808993894433b31c82e9ad03096a256dc Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Thu, 7 Jun 2012 13:06:26 -0700 Subject: [PATCH] Add binary data support for RPC data_fetch. --- src/Wallet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Wallet.cpp b/src/Wallet.cpp index f3c079fa7..29454a18a 100644 --- a/src/Wallet.cpp +++ b/src/Wallet.cpp @@ -135,7 +135,8 @@ bool Wallet::dataFetch(const std::string& strKey, std::string& strValue) { std::string strPublicKey, strPrivateKey; - db->getStr("Value", strValue); + std::vector vucData = db->getBinary("Value"); + strValue.assign(vucData.begin(), vucData.end()); db->endIterRows();