How to read image content for uploading?

I have an image file on android device:

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 =, "rb")

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

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