I have sql file and put there one image i cannot read it it always get error:
java.lang.IllegalArgumentException: column 'png_logo' does not exist
It for sure exist...here is code:
Here is logos.db file.
java.lang.IllegalArgumentException: column 'png_logo' does not exist
It for sure exist...here is code:
B4X:
Dim SQL1 As SQL
'INIT - SQL1
SQL1.Initialize(File.DirInternal, "logos.db", True)
'INIT - Cursors
Dim Cursor1 As Cursor
'QUERY - DB
Cursor1 = SQL1.ExecQuery2("SELECT 'tvg_logo', 'png_logo' FROM logos WHERE 'tvg_logo'=?", Array As String("hrt1"))
'SET - Position
Cursor1.Position = 0
'DECLARE - Buffers
Dim Buffer() As Byte
'READ - Bloob
Buffer = Cursor1.GetBlob("png_logo")
'DECLARE - InputStreams
Dim InputStream1 As InputStream
'INITIALIZE - InputStreams
InputStream1.InitializeFromBytesArray(Buffer, 0, Buffer.Length)
'INIT - Bitmaps
bmpChLogo.Initialize2(InputStream1)
InputStream1.Close
Here is logos.db file.