Hi all,
Anyone here able to read image from Firebird database that was sent via JRDC?
I have the following codes to send an image
It was a success operation, but when I tried to view image on Server Side with Firebird database, it returns error :
Bitmap image is not valid.
How to solve this problem?
Thanks in advance.
Anyone here able to read image from Firebird database that was sent via JRDC?
I have the following codes to send an image
B4X:
Sub Globals
Private reqM As DBRequestManager
Private Conn As String
Private txtId As EditText
End Sub
Sub btnTest_click
If(reqM.IsInitialized = False) Then reqM.Initialize(Me, Conn)
Private Id As Int
Dim Buffer() As Byte
Buffer = reqM.FileToBytes(File.DirAssets,"black.jpg")
Id = txtId.Text
Dim cmd As DBCommand
cmd.Initialize
cmd.Name = "ins_tmp"
cmd.Parameters = Array As Object(Id,Buffer)
reqM.ExecuteQuery(cmd, 0, "ins_tmp")
End Sub
It was a success operation, but when I tried to view image on Server Side with Firebird database, it returns error :
Bitmap image is not valid.
How to solve this problem?
Thanks in advance.