I am new to images manipulation
My question is how to download bitmap from the sql server
I can upload the bitmap as buffer()
i use service and get the result in "Sub JobDone(Job As HttpJob)"
but when i download to
"Table As DBResult" the buffer is too short
i tried job.getbitmap but i get an error
how can i get the bitmap ?
Dim result As DBResult = reqManager.HandleJob(Job)
CallSub2(Mana, "Save_Manot", result )
B4X:
Sub Save_Manot(Table As DBResult)
Dim ArryRow(4) As String
Dim i As Int
For Each row() As Object In Table.Rows
i=0
For Each record As Object In row
If i=0 Then ' first col
Log(record)
ok i checked again and the record is full but still no image showing
B4X:
For Each row() As Object In Table.Rows
i=0
For Each record As Object In row
If i=2 Then
Dim ins As InputStream
Dim bmp As Bitmap
Dim jpeg() As Byte
jpeg=record
ins.InitializeFromBytesArray(jpeg, 0, jpeg.Length)
bmp.Initialize2(ins)
ImgMana.Color=Colors.Black
ImgMana.Bitmap=bmp
Ok i don't know why but i changed the package name from b4a.example to a new name
and every thing is working fine
now i will remember for sure to change it first thing for my next projects
tank you for the help