# Calling method on OPC UA server for file sending to a press

**URL:** <https://forum.inductiveautomation.com/t/calling-method-on-opc-ua-server-for-file-sending-to-a-press/54139>\
**Category:** Ignition\
**Created:** [December 15, 2021, 9:51am UTC](https://forum.inductiveautomation.com/t/calling-method-on-opc-ua-server-for-file-sending-to-a-press/54139 "2021-12-15T09:51:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 15, 2021, 1:08pm UTC](https://forum.inductiveautomation.com/t/calling-method-on-opc-ua-server-for-file-sending-to-a-press/54139/3 "2021-12-15T13:08:54Z")

</div>

Try using `system.file.readFileAsBytes` instead of opening the file in Jython, which just gives you a String value.

[https://docs.inductiveautomation.com/display/DOC81/system.file.readFileAsBytes](https://docs.inductiveautomation.com/display/DOC81/system.file.readFileAsBytes)

You need to be on a least Ignition 8.1.1 for this to work I think.

---

_[View the full topic](https://forum.inductiveautomation.com/t/calling-method-on-opc-ua-server-for-file-sending-to-a-press/54139)._
