Fork me on GitHub
#cljsrn
<
2019-08-13
>
Mark W23:08:25

hi everyone, I'm using react-native-document-picker to select a PDF file, and then I am using the .readFile function from react-native-fs to read the uri for the PDF as base64. After this I am using the .decode function from the base64-arraybuffer library to get an ArrayBuffer to use in a Blob construction. So looks like (js/Blob. (array (.decode Base64Binary @base64-var))). However, I am getting the error "Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported?! Any help is much appreciated, thanks.

Mark W23:08:30

from my package.json the library versions are: "base64-arraybuffer": "^0.2.0","react": "16.8.3","react-native": "0.59.5","react-native-document-picker": "^3.2.4","react-native-fs": "^2.14.1"