假設我有一個圖像,例如,從圖片選擇器,它看起來像這樣:ImageStore.getBase64ForTag需要什麼URI格式?
{
"height": 2848,
"origURL": "assets-library://asset/asset.JPG?id=B84E8479-475C-4727-A4A4-B77AA9980897&ext=JPG",
"cancelled": false,
"width": 4288,
"fileSize": 342120,
"isVertical": false,
"uri": "file:///Users/sepp/Library/Developer/CoreSimulator/Devices/998C81E0-5CC6-4A3E-90C2-A7C43060220C/data/Containers/Data/Application/53F9F372-37DD-4CD2-B5E2-0D984A064686/Library/Caches/%2540anonymous%252Fcleanguide-c5413b44-e71a-4958-80a6-25b9c9e5d7a5/ImagePicker/A1D3644A-516E-4D7C-911C-2AC120B229BB.jpg"
}
綜觀文檔爲陣營原住民ImageStore(https://facebook.github.io/react-native/docs/imagestore.html),人們會認爲使URI該圖像的至ImageStore.getBase64ForTag
應返回該圖像的base64。
相反,它會產生一個錯誤無效的imageTag:file:/// Users/sepp/Library [...](爲了便於閱讀,縮短了)。
所以我的問題是:ImageStore.getBase64ForTag
期望什麼樣的URI?