Sub GetImage
Dim req As DBRequestManager = CreateRequest
Dim cmd As DBCommand = CreateCommand("select_all", Null)
Wait For (req.ExecuteQuery(cmd, 0, Null)) JobDone(j As HttpJob)
If j.Success Then
req.HandleJobAsync(j, "req")
Wait For (req) req_Result(res As DBResult)
'work with result
Dim Blob As Byte
Blob = req.BytesToImage(res.Rows)
ImageView1.Bitmap=LoadBitmap(Blob,"")
req.PrintTable(res)
Else
Log("ERROR: " & j.ErrorMessage)
End If
j.Release
End Sub