On Thu, Jun 18, 2009 at 9:39 PM, Seysan<[email protected]> wrote:
> How can I read a blob column in C#?
I just checked my code and this is what I use minus various infrastructure bits:
public T GetValue<T>( String query )
{
using (IDbCommand cmd = connection.CreateCommand())
{
cmd.CommandText = query;
return (T)cmd.ExecuteScalar();
}
}
public void foo()
{
byte[] img = GetValue<byte[]>( "select imageblob from imagetable" );
}
--
Joel Lucsy
"The dinosaurs became extinct because they didn't have a space
program." -- Larry Niven
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users