[sqlite] Read Blob Returning bytes till NULL Terminated String

2015-03-09 Thread reddy ykk
I am using C++/VC++ language as a wrapper for accessing SQLite. I have tried using memcpy as well but of no use. On Mar 9, 2015 11:07 PM, "Richard Hipp" wrote: > On 3/9/15, reddy ykk wrote: > > Hi Sir, > > > > I have a requirement of reading an image data (BLOB) from a database. > > I could suc

[sqlite] Read Blob Returning bytes till NULL Terminated String

2015-03-09 Thread reddy ykk
Hi Sir, I have a requirement of reading an image data (BLOB) from a database. I could successfully read the length of the blob using sqlite3_column_bytes() but when i try to read the entire blob using sqlite3_column_blob(), i am getting undesired results. I am getting the bytes till NULL terminat

[sqlite] Read Blob Returning bytes till NULL Terminated String

2015-03-09 Thread Hick Gunter
mailinglists.sqlite.org Betreff: [sqlite] Read Blob Returning bytes till NULL Terminated String Hi Sir, I have a requirement of reading an image data (BLOB) from a database. I could successfully read the length of the blob using sqlite3_column_bytes() but when i try to read the entire blob using

[sqlite] Read Blob Returning bytes till NULL Terminated String

2015-03-09 Thread Igor Tandetnik
On 3/9/2015 1:31 PM, reddy ykk wrote: > I am getting the bytes till NULL terminated string is present. How exactly do you determine that? You aren't using strcpy or similar on those bytes, are you? I suggest you show your code that calls sqlite3_column_blob, and especially what you do afterwards

[sqlite] Read Blob Returning bytes till NULL Terminated String

2015-03-09 Thread Richard Hipp
On 3/9/15, reddy ykk wrote: > Hi Sir, > > I have a requirement of reading an image data (BLOB) from a database. > I could successfully read the length of the blob using > sqlite3_column_bytes() but when i try to read the entire blob using > sqlite3_column_blob(), i am getting undesired results. >

[sqlite] Read Blob Returning bytes till NULL Terminated String

2015-03-09 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/09/2015 10:31 AM, reddy ykk wrote: > I have a requirement of reading an image data (BLOB) from a > database. I could successfully read the length of the blob using > sqlite3_column_bytes() but when i try to read the entire blob > using sqlite3_c