# Error: the argument: \[object ArrayBuffer\] is not an image

**URL:** <https://discourse.psychopy.org/t/error-the-argument-object-arraybuffer-is-not-an-image/23283>\
**Category:** Online experiments\
**Created:** [June 1, 2021, 10:00am UTC](https://discourse.psychopy.org/t/error-the-argument-object-arraybuffer-is-not-an-image/23283 "2021-06-01T10:00:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![akansha02](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@akansha02](https://discourse.psychopy.org/u/akansha02)\
**Post date:** [June 1, 2021, 10:00am UTC](https://discourse.psychopy.org/t/error-the-argument-object-arraybuffer-is-not-an-image/23283/1 "2021-06-01T10:00:53Z")

</div>

Continuing the discussion from [Keep getting unknown resource errors](https://discourse.psychopy.org/t/keep-getting-unknown-resource-errors/20765/10):

URL of experiment: [https://run.pavlovia.org/akansha02/bttupdated](https://run.pavlovia.org/akansha02/bttupdated)

Description of the problem:  
Hi! really sorry to reopen this discussion, im actually quite new to psychopy and i actually had the exact same resource error as above and followed the steps outlined above including adding the image resources in the online tab which resolved the resource error, but it actually created a new error:

"Unfortunately we encountered the following error:

- when setting the image of ImageStim: Body
- **the argument: [object ArrayBuffer] is not an image" }**"

I have tried to look through the forum for a similar error and couldnt find anything and i was not sure how to resolve this.  
Any help would be very much appreciated  
thank you!!

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [June 1, 2021, 10:06am UTC](https://discourse.psychopy.org/t/error-the-argument-object-arraybuffer-is-not-an-image/23283/2 "2021-06-01T10:06:48Z")

</div>

I wonder if Body is used for something else. Try changing the name of your image component to something like BodyImage.

---

<div class="post-metadata">

**Author:** ![akansha02](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@akansha02](https://discourse.psychopy.org/u/akansha02)\
**Post date:** [June 1, 2021, 10:10am UTC](https://discourse.psychopy.org/t/error-the-argument-object-arraybuffer-is-not-an-image/23283/3 "2021-06-01T10:10:07Z")

</div>

![Screenshot 2021-06-01 at 11.09.09](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/4/1/41b0f1285fb008cbdc71c22d28c62b7b60d7e87e.png)  
thank you - I just tried it and unfortunately the same error message came up again

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [June 1, 2021, 10:11am UTC](https://discourse.psychopy.org/t/error-the-argument-object-arraybuffer-is-not-an-image/23283/4 "2021-06-01T10:11:14Z")

</div>

Please could you show a screenshot of your image component? What are you trying to display?

---

<div class="post-metadata">

**Author:** ![akansha02](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@akansha02](https://discourse.psychopy.org/u/akansha02)\
**Post date:** [June 1, 2021, 10:13am UTC](https://discourse.psychopy.org/t/error-the-argument-object-arraybuffer-is-not-an-image/23283/5 "2021-06-01T10:13:43Z")

</div>

![Screenshot 2021-06-01 at 11.11.47](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/f/3/f3db3f70f04cccb529f6cce0a5cbb29d34a66855.png)  
Thats my image component - its actually calling up an image from a set of pathways based on the gender selected on the onset of the experiment. this instruction is located in the code component of the experiment - I have also attached the .psyexp file incase that makes it easier to understand, thank you!  
[BTT5-31.psyexp](https://discourse.psychopy.org/uploads/short-url/j8WwhpBemYdjsM8JptMrW49epzX.psyexp) (36.3 KB)

---

<div class="post-metadata">

**Author:** ![akansha02](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@akansha02](https://discourse.psychopy.org/u/akansha02)\
**Post date:** [June 1, 2021, 10:17am UTC](https://discourse.psychopy.org/t/error-the-argument-object-arraybuffer-is-not-an-image/23283/6 "2021-06-01T10:17:18Z")

</div>

this is one of the excel files with the pathways: there are 3 like this and the appropriate one used is based on what gender identity is inputted at the start of the experiment which is what the code component is for  
[chooseblocksF.xlsx](https://discourse.psychopy.org/uploads/short-url/5KHvOEtkkb3uvxmcZdqvEdDOQZ4.xlsx) (9.1 KB)

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [June 1, 2021, 10:47am UTC](https://discourse.psychopy.org/t/error-the-argument-object-arraybuffer-is-not-an-image/23283/7 "2021-06-01T10:47:57Z")

</div>

Are you using condsFile for the variable name of the file as well as the name of the image column?

---

<div class="post-metadata">

**Author:** ![akansha02](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@akansha02](https://discourse.psychopy.org/u/akansha02)\
**Post date:** [June 1, 2021, 11:27am UTC](https://discourse.psychopy.org/t/error-the-argument-object-arraybuffer-is-not-an-image/23283/9 "2021-06-01T11:27:41Z")

</div>

yes! you are right that did seem to be the issue. thanks so much!!
