Fetch JPG image file from Breakout SD Card upload to FTP webserver

I'm a beginner with regards to building systems like this so I have absolutely no idea how to even remotely do what I want done.

I have a project of which I built a system which when it detects motion ( Using a PIR sensor ) or when a button is pushed the camera ( Serial TTL Camera) will take a picture and save it to a breakout SD card module, now I've managed to get the this part working I can see the images in the SD card both taken when the button is pushed or motion is detected now what I need to do is to fetch the JPG images from the SD card and upload them to the webserver using the breakout wifi module (ESP8266)

EDIT: if you could link me to a tutorial or guide I would be very greatful

Open the file for reading, and send the contents, byte by byte, through the wifi module.

jremington:
Open the file for reading, and send the contents, byte by byte, through the wifi module.

If you could link me a guide or a tutorial I would be thankful