# byteString OPC UA Tags In Ignition

**URL:** <https://forum.inductiveautomation.com/t/bytestring-opc-ua-tags-in-ignition/102262>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [February 12, 2025, 6:37pm UTC](https://forum.inductiveautomation.com/t/bytestring-opc-ua-tags-in-ignition/102262 "2025-02-12T18:37:54Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [February 12, 2025, 8:22pm UTC](https://forum.inductiveautomation.com/t/bytestring-opc-ua-tags-in-ignition/102262/7 "2025-02-12T20:22:34Z")

</div>

Can you trigger a script with `system.opc.readValue` and directly grab the bytestring from the device?  
I have grabbed images off a Datalogic Matrix Barcode reader over OPCUA as bytestring, but they came from a OPCUA method as a bytestring.  
Once you do that, I threw them into a db as base64 and used them in reports:

> [@Retrieving Base64 Images from SQL Databases](https://forum.inductiveautomation.com/t/retrieving-base64-images-from-sql-databases/80046):
>
> I have been struggling through making Base64 images work properly in various areas of a job, so seeing as there is no clear information on how to do this, I thought I would make a post to preserve the info I have accumulated. Encoding an image to save in a Database I am using a device that sends me Image data on OPC-UA, so my data will come from a different system than most people will use. When I get an image, I have a python script in my gateway that does the following: import base64 logg…

@pturmel has a Blob server driver that will give you better options for using the images.

---

_[View the full topic](https://forum.inductiveautomation.com/t/bytestring-opc-ua-tags-in-ignition/102262)._
