MemoryError: memory allocation failed, allocating 83264 bytes

Hello all,
Sorry to bother you guys!
When I use openmv4 H7 Plus,I want read a image and convert the image into base64,however,it shows MemoryError: memory allocation failed, allocating 83264 bytes in first picture,and my script is in the second picture, How can I convert the image base64 ,and my image is in the third picture.
Thanks!!!
image
image
testr1

Hi, allocs that big aren’t guaranteed to be successful because of heap fragmentation.

There’s no fix for this except to use smaller jpegs.