Thanks All. . sqlite_bind_blob did the trick On May 22, 2015 12:37 PM, "Darko Volaric" <lists at darko.org> wrote:
> Use incremental blob I/O, see > > http://sqlite.org/c3ref/blob_open.html > > Note that you'll need to use INSERT or UPDATE SQL to allocate or expand > space for the blob in the database field. > > > On Thu, May 21, 2015 at 7:17 PM, reddy ykk <ykk157 at gmail.com> wrote: > > > Hi All, > > > > I am facing a problem in downloading the image files (from internet) and > > writing the same to SQLite Database (blob Data). > > > > 1. I dont want to encode the binary data. I just want to write as it is. > So > > that i can fetch the image data later and draw on my screen. > > 2. The image data has '00' after 4 bytes. So, only first 4 bytes are > being > > written to Database as blob data. > > > > Please help me in overcoming these problems. > > I am using VC++ as the coding language. I am using SQLite 3 methods for > the > > same. > > > > Any sample code is highly apreciated > > > > Thanks and Regards, > > Kishor Reddy > > _______________________________________________ > > sqlite-users mailing list > > sqlite-users at mailinglists.sqlite.org > > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > > > _______________________________________________ > sqlite-users mailing list > sqlite-users at mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users >