I try to get parse files saved on server as jpeg images
when I get the information back from server I receive byte of data as shown below
Question :
How do I use the data byte to display the jpg image to a scroll view ?
I imagine that data() as byte can be converted back to image but how ?
when I get the information back from server I receive byte of data as shown below
B4X:
Sub pf_DoneGet (Success As Boolean, Data() As Byte, TaskID As Int)
Dim pf As ParseFile
pf = Sender
Dim msg As String
msg = "Getting file: " & pf.Name & " Success=" & Success
Log(msg)
ToastMessageShow(msg, False)
If Success = False Then
Log(LastException.Message)
Else
msg = BytesToString(Data, 0, Data.Length, "UTF-8")
Log(msg)
End If
End Sub
Question :
How do I use the data byte to display the jpg image to a scroll view ?
I imagine that data() as byte can be converted back to image but how ?