From: Warren Young Date: January 28 2009 9:53pm Subject: Re: Convert mysqlpp::String to std::string List-Archive: http://lists.mysql.com/plusplus/8346 Message-Id: <55AA329E-5BDD-4F73-A08A-B6AD7130FC52@etr-usa.com> MIME-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Jan 28, 2009, at 5:40 AM, Robert Simmons wrote: > string servers(clusters[i]["servers"]); //servers => "1 This should do what you want, unless the field has embedded null characters in it. (Typical of BLOB data.) In that case, either keep it in String form, as that has better copy semantics, or do the copy this way: String blob(clusters[i]["servers"]); string servers(blob.data(), blob.length());