<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 133: cppDb with sqlite3: blob data inserted as text instead of blob</title><link href="https://sourceforge.net/p/cppcms/bugs/133/" rel="alternate"/><link href="https://sourceforge.net/p/cppcms/bugs/133/feed.atom" rel="self"/><id>https://sourceforge.net/p/cppcms/bugs/133/</id><updated>2014-08-20T15:06:54.372000Z</updated><subtitle>Recent changes to 133: cppDb with sqlite3: blob data inserted as text instead of blob</subtitle><entry><title>cppDb with sqlite3: blob data inserted as text instead of blob</title><link href="https://sourceforge.net/p/cppcms/bugs/133/" rel="alternate"/><published>2014-08-20T15:06:54.372000Z</published><updated>2014-08-20T15:06:54.372000Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net27c725ed76f3af15629833af4f7dd0fe16054e28</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When trying to insert blob data in sqlite3 throw cppDb, data is actually stored as text rather than blob. Changing the following code in sqlite3_backend.cpp seems to fix the issue, but I am not sure if there are side effects to this:&lt;/p&gt;
&lt;p&gt;virtual void bind(int col,std::istream &amp;amp;v) &lt;br /&gt;
{&lt;br /&gt;
...&lt;br /&gt;
check_bind(sqlite3_bind_text(st_,col,tmp.c_str(),tmp.size(),SQLITE_TRANSIENT));&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;replaced with&lt;br /&gt;
check_bind(sqlite3_bind_blob(st_,col,tmp.c_str(),tmp.size(),SQLITE_TRANSIENT));&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>