# Python Ploty with IIS

**URL:** <https://community.plotly.com/t/python-ploty-with-iis/40642>\
**Category:** 📊 Plotly Python\
**Created:** [June 5, 2020, 11:00am UTC](https://community.plotly.com/t/python-ploty-with-iis/40642 "2020-06-05T11:00:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tno78](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tno78](https://community.plotly.com/u/Tno78)\
**Post date:** [June 5, 2020, 11:00am UTC](https://community.plotly.com/t/python-ploty-with-iis/40642/1 "2020-06-05T11:00:12Z")

</div>

Hi,  
I am generating image with Python Plotly and getting data from web app via process standard output. I am able to get the result back at debug mode and after releasing to the server with IIS, I haven’t got result back and doesn’t seems to running that python file.  
Can I get some suggestion please? Thanks.  
eg.

```
img_bytes = fig.to_image(format="png")
img_base64_string = base64.encodebytes(img_bytes).decode()
json_obj = {'image_string': img_base64_string}
txt = json.dumps(json_obj)    
print(txt, file=sys_output)
```
