# loadImage() 403 Error

**URL:** <https://discourse.processing.org/t/loadimage-403-error/25734>\
**Category:** Coding Questions\
**Created:** [November 26, 2020, 5:37pm UTC](https://discourse.processing.org/t/loadimage-403-error/25734 "2020-11-26T17:37:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Glenton](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@Glenton](https://discourse.processing.org/u/Glenton)\
**Post date:** [July 27, 2021, 4:31pm UTC](https://discourse.processing.org/t/loadimage-403-error/25734/5 "2021-07-27T16:31:36Z")

</div>

Hello,

I had the same problem as you with 403 error when trying to load image from an API.

Floflo gave me a solution today that solve my problem, maybe this can help you too:

> [@Using Headers for loading Images](https://discourse.processing.org/t/using-headers-for-loading-images/31450/7):
>
> Hey @Glenton I dont know if this helps: Its a little class which downloads an Image and then loads it via loadImage() from processing 
> 
> > **Click to see the my Example**
> >
> > String URL = "https://img.discogs.com/UoDAnoi3Cbp\_JvOrz4CRgZBBSfg=/fit-in/600x592/filters:strip\_icc():format(jpeg):mode\_rgb():quality(90)/discogs-images/R-367084-1263095553.jpeg.jpg"; PImage img; void setup() { size(100, 100); //img = requestImage(URL);//not working //img = loadImage(URL);//not working DownloadImage…

---

_[View the full topic](https://discourse.processing.org/t/loadimage-403-error/25734)._
