Let's suppose I convert any image to bytearray
.
with open("img.png", "rb") as imageFile:
f = imageFile.read()
b = bytearray(f)
print b[0]
How do I know how much disk space this bytearray
will occupy if I decide to save it.