Re: [Vala] Problems retrieving binary data from a sqlite3 database BLOB column
- From: Alexandre Rosenfeld <alexandre rosenfeld gmail com>
- To: Alexey Savartsov <asavartsov gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Problems retrieving binary data from a sqlite3 database BLOB column
- Date: Mon, 27 Jun 2011 02:21:40 -0400
Just summarizing what Alexey said, what you need is:
var data = (uint8[]) stmt.column_blob(4);
data.length = stmt.column_bytes(4);
You first get the data from Sqlite and then tell Vala about it's length. The
thing here is that Sqlite's API is not exactly Vala friendly, so you have to
do a bit more work then you usually need with Vala.
*Alexandre Rosenfeld*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]