Hello,
I was looking to access the metadata of all attachments in a single incident. I did get an example which uses attachments_data = self.rest_client().get("/incidents/{0}/attachments".format(incident_id)) and then I used a for to go through each entry
data = self.rest_client().get_content("/incidents/{0}/attachments/{1}/contents".format(incident_id,cell["id"]))
The data I get back is a string object which I can write the data out to a file on the server. Potential security concerns aside if I have 50 attachments I don't want to write 50 files to the circuit server then read them back in for the metadata if I can help it.
What I would like to do is using StringIO or ByteIO be able to take that str object and read it into, in this case, an Image object then run the script to get the Metadata off of it. No matter what I've tried I get errors that it doesn't recognize it as a Image.
Is the attachments contents encoded somehow (like Base64) and that's all I'm missing or is what I described simply not possible in the framework.
thanks
------------------------------
Andrew Arter
------------------------------