Read the data buffer of esp32 cam as binary

Perhaps you can take a binary number and manually convert it to text.

Here is a 32 bit binary number.
00000000000000000000000000000b

We'll start at the first 0 on the left. To convert that to text it becomes an 0x30. For ease of display I used all 0's

As text the binary number 0 which occupied 1 memory spot now becomes

0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30. Can you see how the text will occupy MORE space then just the binary number and why your file sizes will NOT be the same?