Read the data buffer of esp32 cam as binary

Is this your first time posting code? You know a code snippet will not work to help solve your issue and why are you trying to use the SD_MMC library?

To do the SD card thing see SD/ReadWrite.ino at master · arduino-libraries/SD · GitHub