File length is 0 when recreating file from URI, or original filepath [getExternalFilesDir(String type) vs getFilesDir()]

前端 未结 3 727
慢半拍i
慢半拍i 2021-01-14 02:09

A little bit of background first: this app takes a picture and uploads to an Azure blob storage.

The picture is stored in a file (internal storage) using getA

3条回答
  •  灰色年华
    2021-01-14 02:44

    While using internal storage the file path is different. I think it is stored in /storage/emulated in latest devices. Check for your file path. and see if you are creating a file with the absolute path.

提交回复
热议问题