transfering image files from SD card to file system storage on MKR 1400 board

HI,
I have a project where i need to upload images files from an SD card to an FTP server. i am using an MKR 1400 board with a SD shield attached. I have successfully done a similar thing with text files where i simply read each character from a txt file and then write it to a buffer then transfer contents of buffer to file on the file system storage of the MKR 1400 (this seemed to work better then going directly from SD card file to file on MKR1400 storage).

How would i do this with an image file as opposed to a text file. I assume the process is similar but i am not sure how i would get the image file data and write it to the buffer - does this use SPI transfer? I am bit hazy on this. Or can i read a certain number of image file bytes into a buffer then transfer buffer to file system storage on MKR 1400. Either way i am a little bit confused.

Any help is much appreciated.

Cheers.

Your Arduino could care less what type of file you want to call it. It can only read and write bytes. What happens when you try to send an "image file" the same as you did with a "text file"?

Paul