react-native-photo-upload
react-native-photo-upload copied to clipboard
Issue with base64 string
Hi, the base 64 I get from onPhotoSelect when posted to axios and retrieved back it becomes truncated, and when it is decoded, the image is cut off. Using the onResponse also, getting its data base64 string, decoding it has a cut off image. Any workaround or fix on this?
Thanks
@idiglove, I use fetch, can you please help me in uploading the selected image to the Server?
@idiglove Sent image with formdata
form.append("profilePicture", { uri: "file://"+this.state.picUri, type: "image/jpeg", // or photo.type name: this.state.responseName });