How can I write a JPG file to PICO on-board flash memory?

I have managed to take pictures, but I want to temporarily save the image file to the PICO before transmitting the image. How can I write a JPG file from my SPI camera to PICO on-board flash memory? I am using Ardurino IDE, so I prefer C to python code.

Hi,
You can use the Pico SDK to write a JPG file. Please refer to the link below.

In addition, if you have to write in the arduino IDE, refer to the class mbed::MBRBlockDevice to write data to flash.

Perfect! Thank you very much.