Android Question Httputils2 download target

sanduro

Member
Licensed User
Longtime User
Hi,

I am downloading the file from internet but i don't want to save it to file, instead i I want to store it in Byte array , cos i will send it via serial when completed.

Is if possible to do it , without intermediate save to file ?

B4X:
Sub btnDownload_Click
    Dim dd As DownloadData
    dd.url = link1
    dd.EventName = "dd"
    dd.Target = Me
    CallSubDelayed2(DownloadService, "StartDownload", dd)
End Sub
 

sanduro

Member
Licensed User
Longtime User
OK , I see httputils2, if i call Job.GetString method it returns the string, but i need array of bytes to be returned.
So i should call Job.GetInputStream method. Got it it works now

Thanks Erel
 
Last edited:
Upvote 0
Top