Richard Dauben <rdau...@sbcglobal.net> wrote:
> 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);

This is wrong. First, it appears you need to use NSMutableData - NSData 
is intended to be read-only. Second, you don't read into NSMutableData 
pointer itself - you read into a buffer that NSMutableData wraps, 
accessible via its mutableBytes property.

Igor Tandetnik



_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to