B bluedude Well-Known Member Licensed User Longtime User Dec 4, 2014 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Dec 4, 2014 #2 Do you get any error message when you try to download this image? Upvote 0
B bluedude Well-Known Member Licensed User Longtime User Dec 4, 2014 #3 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." Upvote 0
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 B4X founder Staff member Licensed User Longtime User Dec 4, 2014 #4 bluedude said: I have the feeling some people user a better image download service. Click to expand... ??? The request is rejected by the server because there is no user agent. You can add one to the requests. For example: Code: 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)") Upvote 0
bluedude said: I have the feeling some people user a better image download service. Click to expand... ??? The request is rejected by the server because there is no user agent. You can add one to the requests. For example: Code: 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)")
B bluedude Well-Known Member Licensed User Longtime User Dec 4, 2014 #5 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. Upvote 0
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.
B bluedude Well-Known Member Licensed User Longtime User Dec 8, 2014 #6 I still hav issues with some images, even when using BitMapSample and user agent. See this one: http://i1.adis.ws/i/wehkamp/556178_pb_01 What is the best way to debug this and get errors? Upvote 0
I still hav issues with some images, even when using BitMapSample and user agent. See this one: http://i1.adis.ws/i/wehkamp/556178_pb_01 What is the best way to debug this and get errors?
Erel B4X founder Staff member Licensed User Longtime User Dec 8, 2014 #7 It works fine here with this code: Code: job1.Download("http://i1.adis.ws/i/wehkamp/556178_pb_01") job1.GetRequest.SetHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0)") You need to check the logs for error messages. Upvote 0
It works fine here with this code: Code: job1.Download("http://i1.adis.ws/i/wehkamp/556178_pb_01") job1.GetRequest.SetHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0)") You need to check the logs for error messages.