Open GabrielDuarteJr opened 1 year ago
Hi! Im working on the same feature, instead of base64, use the uri,
formDataTest.push({
name: 'file',
type: image.type,
filename: image.fileName,
data: RNFetchBlob.wrap(image.uri),
});
this is all good on android, however im having an issue with ios, please let me know if you are able to fix it too :)
Hello, I'm trying to create a image upload function for a react-native app integrating with rocketchat, for which I'm using the rn-fetch-blob and react-native-image-picker libraries.
Versions of the libraries
Code:
I'm able to retrieve the correct base64 string with the react-native-image-picker library, and when I perform the fetch using the rn-fetch-blob library, I receive a 200 response. However, when I check the image received by the server, it simply does not load in the rocketchat client.
I've tried several solutions listed here and in other issues, but without success.
Any help is welcome, thank you!