in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine
All Tags » BLOB » vs2008 (RSS)

Browse by Tags

  • Re: Readin Blob data in C#

    But consider this line: long len = rdr.GetBytes(1, 0, null, 0, 0); it throws a Cast Exception, Check: http://sqlite.phxsoftware.com/forums/t/1781.aspx Any suggestion there?
    Posted to General (Forum) by afshin on 06-19-2009
  • Re: Readin Blob data in C#

    Thanks to Joel Lucsy It has been fixed. Here is his code: 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"...
    Posted to General (Forum) by afshin on 06-18-2009
  • Readin Blob data in C#

    Hi, I'm using the latest Wrapper, Installed about a week ago. I try to use SQLiteDataReader to read a file from the database and write it to a file, but the problem is I can't read it, I either get Cast Exception or No Current Row. For No Current row, if i use reader.Read(); Then I get CAST Exception...
    Posted to General (Forum) by afshin on 06-17-2009
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems