The data the user is sending is not an image file but its content. How can I get its size without making it a file and use filesize
and something similar?
The content of the image as an example:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABLAAAASwCAYAA......
Is it possible to create a formula to calculate the size of the image content? something like strlen($imageContent)
.