i am implementing a webdev script to call images from the database and host them to perspective and to vision applications. All is working fine for image components that bind the URL.
However, now I need to get the byte array to put in a paintable canvas cached image and I need to access the image bytes through scripting.
The script below returns what appears to be a string and the system.net.httpGet documentation shows the return value as a string. How can I convert this to the correct byte array?
ID = 18 Server = system.tag.read("[System]Client/Network/GatewayAddress").value Project = system.tag.read("[System]Client/System/ProjectName").value url = Server + "/system/webdev/" + Project + "/EquipmentFiles?ID=" + str(ID) print url data = system.net.httpGet(url) print data