Convert File URL to Blob data

Im having some trouble to convert the local file url of a image or document to a blob file. I only have the local file url and the Capacitor url.

Can someone give me an example of how I can retrieve the blob from the file path?

Thanks for your help!