Android Question SMM

Almora

Active Member
Licensed User
Longtime User
B4X:
    ........
    
    Dim cur As Cursor
    cur = Main.datac.ExecQuery("select * from ntc1 order by ntid desc")
    If cur.RowCount = 0 Then
        
    .........
    Else
 
        For i = 0 To cur.RowCount - 1
            cur.Position = i
            Dim input As InputStream
            Dim Buffer() As Byte
            Buffer=cur.GetBlob("id1")
            input.InitializeFromBytesArray(Buffer,0,Buffer.Length)   
            Bitmap1.Initialize2(input)
            input.Close
        Next
    End If
    cur.Close
    
    ' ImageView1.SetBackgroundImage(Bitmap1)
 
     MediaManager.SetMediaFromFile(Panel1,dir , "??", "image/*", CreateMap(MediaManager.REQUEST_ZOOMIMAGEVIEW: True))


Hello.
How can I show the image in SMM without saving it?
thanks..
 

TILogistic

Expert
Licensed User
Longtime User
see

B4X:
SMM.AddLocalMedia("image key", img, "image/*")
 
Upvote 0
Top