Sub notGettingBLOB
Log(" prntr errror B4 here, Yes/No")
' Dim CursR As ResultSet = SQL1.ExecQuery("SELECT image FROM imgz WHERE RowID = " & lstRowIDs.Get(pos))
Dim CursR As ResultSet = SQL1.ExecQuery("SELECT image FROM imgz") ' Error loading image
Dim binimageR() As Byte, OtptR As InputStream ' beyond bounds
' CursR.Position = 0
CurrentIndex = RowID
binimageR = CursR.GetBlob("image")
OtptR.InitializeFromBytesArray(binimageR, 0, binimageR.Length)
BmpR.Initialize2(OtptR) ' Error loading image ' stops here <
' OtptR.Close ' Error loading image
Dim outR As OutputStream = File.OpenOutput(File.DirDocuments, "Picturer.jpg" , False)
BmpR.WriteToStream(outR, 100, "JPEG") ' write the bitmap to the stream
outR.Close
CursR.Close ' Error loading image
btnN.Bitmap = LoadBitmap(File.DirLibrary,"Picturer.jpg")
End Sub