This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Description
"react-native-fetch-blob": "^0.10.8"
"react": "16.0.0-alpha.12"
"react-native": "^0.48.4"
import RNFetchBlob from 'react-native-fetch-blob'
RNFetchBlob.fetch('POST', `http://...`, {
Authorization : ...,
'Content-Type': 'multipart/form-data'
}, [
{ name: 'avatar', filename: 'avatar.png', type: 'image/jpeg', data: base64 }
])
.then((response) => {
console.log(response)
resolve(response)
}).catch(reject)
Where base64 is the data: '/9j/4AAQSkZJRg...
{
height: 4160,
width: 3120,
type: 'image/jpeg',
fileName: 'image-60aac343-91ca-4d2a-9cbb-1e853f85a7e9.jpg',
fileSize: 3693187,
path: '/storage/emulated/0/Pictures/image-60aac343-91ca-4d2a-9cbb-1e853f85a7e9.jpg',
data: '/9j/4AAQSkZJRg...
}
The error:
I/ExifInterface_JNI: Raw image not detected
What could I be missing?