public byte[] ColumnBlob(IDbStatement stmt, int index) { var dbStatement = (DbStatement)stmt; int length = ColumnBytes(stmt, index); byte[] result = new byte[length]; if (length > 0) { if (_useWinSqlite) { Marshal.Copy(WinSQLite3.ColumnBlob(dbStatement.InternalStmt, index), result, 0, length); } else { Marshal.Copy(SQLite3.ColumnBlob(dbStatement.InternalStmt, index), result, 0, length); } } return(result); }