Hi,
The esp32cam has extra memory included in the form of PSRAM
see: ESP32 - How To Use PSRAM • ThingPulse
Images you capture will probably be stored in SPIFFS
see: SPIFFS in ESP32
BTW - I found it difficult myself to find out how to do the basics with the esp32cam so I put together this demo sketch: GitHub - alanesq/esp32cam-demo: esp32cam module demo / shows how you can easily use the esp32cam including reading raw rgb data, streaming, displaying the image etc.(ArduinoIDE or PlatformIO)