How to read image content for uploading?

I have an image file on android device:
file:///storage/emulated/0/Android/data/com.chungxa.kyhoang/files/DCIM/IMG_20240605_173656685.jpg

I’m trying to get its content to use for uploading to server. I use this code but it seems not reaching to the file
local f = io.open(filepath, "rb")

Is there a proper way to read file content from device?

By removing file:// from the file path, the problem solved.