I have a set of images and txt files create by a Keyence vision system after an inspection of a part and, we need upload this files to a Table for a future reference of the inspection results, I can use the Edge devices to read an input when the images and the txt files are ready to upload.
If this posible using only the edge device and Node-Red?
Hi @AdolfoZamora -
We’re looking into this for you and will get back to you shortly. Just to make sure we understand the question here, you are wanting to know:
- Can node-red read files?
- Can you use the api to upload these files to a table?
Yes to both, Regards
@AdolfoZamora I would think of this as less of an edge device problem and mostly just a problem for how to interface between a node-red service and your tulip instance. Node-red just happens to be running on an edge device.
As of right now I do not believe that external services can write images to Tulip, unless I have missed this feature release. There is an old thread here where @youri.regnaud was asking. Here is the same thread for files and I assume the same answer. I would not recommend the solution given there as it would require exposing your files to the public internet.
I would recommend that you set up node-red to save the image or file to a network drive location, then send this file path to a tulip table. This way anyone on your network will be able to open the image or file from Tulip. There are some other advantages to this approach, however, the main con is that you will not be able to view the files directly in Tulip. Only links. For this use case it does not seem so bad.
Ok, thanks for the feedback
I’d opt for a backup in an S3 bucket. We have similar cases where we use Highbyte (NodeRed can too) to transform Keyence/Zeiss text into data and we ultimately store the data and not the file.
What do you think about saving images as Base64 and the txt file as Text?
I guess it’s about the actual use case if this is a decent way to go, but in some cases it might be an alternative…