React-native-webview: Does base64 not supported by webView?

Created on 3 Jan 2020  路  1Comment  路  Source: react-native-webview/react-native-webview

//converting blob to base64data

const fileReaderInstance = new FileReader();
fileReaderInstance.readAsDataURL(response.data);
fileReaderInstance.onload = () => {
base64data = fileReaderInstance.result;
console.log(base64data);
dispatch({
type: OPEN_DOCUMENT, url: base64data
});
}

//rendering

source={{ uri: url }}
originWhitelist={['*']}
/>

I am able to render the image file using Image tag but Webview is throwing error "028
data:application/pdf;base64,JVBERi0xLjMNCiXi48/TDQoNCjEgMCBvYmoNCjw8DQovVHlwZ... is not a file url ".

Please help.

Stale bug report

>All comments

Hello 馃憢, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like _still searching for solutions_ and if you found one, please open a pull request! You have 7 days until this gets closed automatically

Was this page helpful?
0 / 5 - 0 ratings

Related issues

emeraldsanto picture emeraldsanto  路  3Comments

ranshine picture ranshine  路  3Comments

Kelvin9393 picture Kelvin9393  路  3Comments

rezvalari picture rezvalari  路  3Comments

panda0603 picture panda0603  路  3Comments