<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 133: cppDb with sqlite3: blob data inserted as text instead of blob</title><link>https://sourceforge.net/p/cppcms/bugs/133/</link><description>Recent changes to 133: cppDb with sqlite3: blob data inserted as text instead of blob</description><atom:link href="https://sourceforge.net/p/cppcms/bugs/133/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 20 Aug 2014 15:06:54 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/cppcms/bugs/133/feed.rss" rel="self" type="application/rss+xml"/><item><title>cppDb with sqlite3: blob data inserted as text instead of blob</title><link>https://sourceforge.net/p/cppcms/bugs/133/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 20 Aug 2014 15:06:54 -0000</pubDate><guid>https://sourceforge.net27c725ed76f3af15629833af4f7dd0fe16054e28</guid></item></channel></rss>