After successfully reading from a blob sequentially to a buffer in Objective C
the buffer seems to be altered such that it can no longer be accessed from 
memory....  Is there some kind of special buffer type that I should be using?
Here is sample of my code:
 
int success;
NSData *inBuffer;
success = sqlite3_blob_read(blobData, inBuffer, intByteCount, intOffsetInBlob);
 
After running this code, success == SQLITE_OK. Prior to reading the blob,
inBuffer behaves normally.  Afterward, it no longer behaves like a buffer, and I
cannot get any valid data from it.  I have set intByteCount to make sure it is
smaller than the number of bytes in the Blob, and intOffsetInBlob = 0.
 
Thanks for any help.
 
Richard Dauben
 
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to