# Loading Image file fails

**URL:** <https://community.postman.com/t/loading-image-file-fails/2408>\
**Category:** Help Hub\
**Tags:** scripts\
**Created:** [August 16, 2018, 5:22am UTC](https://community.postman.com/t/loading-image-file-fails/2408 "2018-08-16T05:22:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev\_sp](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dev\_sp](https://community.postman.com/u/dev_sp)\
**Post date:** [August 16, 2018, 5:22am UTC](https://community.postman.com/t/loading-image-file-fails/2408/1 "2018-08-16T05:22:27Z")

</div>

Hi, I have used the c# generated script to call a php and load an image. When I use the same parameters to load from the postman client it works.  
When I copy the generated script and execute it, it just creates an empty image file.  
What could be causing this? Is there another parameter in the call that I should include or modify?

---

<div class="post-metadata">

**Author:** ![sujayvenaik](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/sujayvenaik/32/995_2.png) [@sujayvenaik](https://community.postman.com/u/sujayvenaik)\
**Post date:** [August 22, 2018, 8:41am UTC](https://community.postman.com/t/loading-image-file-fails/2408/2 "2018-08-22T08:41:49Z")

</div>

Hey @dev_sp

I believe the code snippet that is generated for the postman request is not correct.

Postman currently relies on an external library for code snippets, which has a lot of issues.

A lot of these requests have come up regarding wrong snippets generated, hence steps are planned for its rectification.

Thanks for reporting this.
