Hi everyone
Why is the file size calculation so different in these three methods?
Why is the file size calculation so different in these three methods?
B4A:
'image8.jpg size 84.5 KB (86,547 bytes)
Dim bmp As Bitmap
bmp.Initialize(File.DirAssets, "image8.jpg")
Log("bmp string length : "&BitmapToString(bmp).Length) ' 951116 byte
Dim bb() As Byte=ImageToBytes(bmp)
Log("bb byte length : "&bb.Length) ' 309169 byte
Dim buffer() As Byte = File.ReadBytes(File.DirAssets, "image8.jpg")
Log("buffer byte length : "&buffer.Length) ' 86547 byte