Images from webhost

anaylor01

Well-Known Member
Licensed User
Longtime User
I have a webhost that has a database and image files that I want to load into a scrollview. I can pull the data but not sure how to or the best way to display the images. Any help would be appreciated.
 
My question was more what is the syntax to get the image from the webhost and what is the best way of doing that? i.e. FTP, HTTP etc.
 
Upvote 0
I am getting a 404 error.
Code:
Sub Activity_Create(FirstTime As Boolean)
        hc.Initialize("hc")
    Activity.LoadLayout("1")
    hc.Initialize("hc")
    Dim req As HttpRequest
    req.InitializeGet("http://www.mywebsite.com/modules/boonex/photos/data/files/2.jpg")
    hc.Execute(req, 1)

End Sub
Sub hc_ResponseSuccess (Response As HttpResponse, TaskId As Int)
Dim b As Bitmap
    b.Initialize2(Response.GetInputStream)
  
' imageview1.Bitmap = b
       Activity.SetBackgroundImage(b)
    Response.Release

End Sub
 
Upvote 0
Back
Top