Android Question Repeating image download issues

bluedude

Well-Known Member
Licensed User
Hi,

I keep having issue with the image downloader service, some URL's simply don't work and produce an error. I'm using the httpUtils class and not the library.

Already added GetBitmapSample and that solves a few problems.

This URL gives me an image download and it works in the browser or the Photopager library http://www.redcoon.nl/res/shop/cataloge/product_200/B515292.jpg

Can anyone else try?

I have the feeling some people user a better image download service. Don't have time right now to integrate a new solution, need to fix the current one.
 

bluedude

Well-Known Member
Licensed User
I think in my logs it says File not found and the service gives me error downloading image.

There is an error in my log which I don't create,

File not found."
 

Erel

Administrator
Staff member
Licensed User
I have the feeling some people user a better image download service.
???

The request is rejected by the server because there is no user agent.

You can add one to the requests. For example:
B4X:
job1.Initialize("Job1", Me)
job1.Download("http://www.redcoon.nl/res/shop/cataloge/product_200/B515292.jpg")
job1.GetRequest.SetHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0)")
 

bluedude

Well-Known Member
Licensed User
Great fix, thanks! Love the new B4A stuff BTW, I guess we can make kind of Lollipop interfaces.

Better download service not needed anymore, it works.
 
Top