So I'm scanning my document and all its layers for image layers and I want to retrieve these images and send them somewhere using a http POST request. I got the POST request part working but I can't seem to find a way to access the actual image file. I successfully posted the name of the image layer but that's as far as I got. I've read the threads on here concerning this subject but didn't see a proper solution yet.
in short; How do I send an image file that is saved locally via an http POST request?
to be more specific; How do I access the raw image file?
The only way that has worked for me until now was using the sketch export function.