0

I use Free Hosting EU: http://cp1.freehostingeu.com/

Uploaded my image but I can't display it in imageview, getting empty by using Picasso. When I browse url of image which is like

http://example.me.pn/Upload_Images/uploadedimages/9_images.jpeg

it gets

ERROR 403: FORBIDDEN WEB PAGE

What is the problem in my host or code?

I use this:

Picasso.with(MainActivity.this).load(url).centerCrop().resize(150,150).into(navMainProfile);
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Amr Magdy
  • 43
  • 1
  • 8
  • Probably it's a problem in server. Can you access the image from a browser (with direct url)? And, if you want, add the image url to your question – rsella Jul 06 '16 at 10:15
  • no i cant, here is url http://hrguide.me.pn/Upload_Images/uploadedimages/9_images.jpeg – Amr Magdy Jul 06 '16 at 13:37
  • If you can't access image on browser it's not an Android or Picasso problem. Solve the access problem on your server and it'll probably solve your issue on Android – rsella Jul 06 '16 at 13:40
  • what should i do for be accessing image in server – Amr Magdy Jul 06 '16 at 13:55
  • I don't know your current server settings or if your image upload actually succeeded. 403 is a generic server error, so I have no idea what's going on. Try uploading image again, check if upload was correct and if url is right – rsella Jul 06 '16 at 14:00
  • im using free host. is that a problem – Amr Magdy Jul 06 '16 at 15:03
  • See https://stackoverflow.com/questions/13670692/403-forbidden-with-java-but-not-web-browser – Raedwald Jul 26 '18 at 12:08

0 Answers0