react-native-photo-upload icon indicating copy to clipboard operation
react-native-photo-upload copied to clipboard

Issue with base64 string

Open idiglove opened this issue 6 years ago • 2 comments

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 avatar May 08 '18 13:05 idiglove

@idiglove, I use fetch, can you please help me in uploading the selected image to the Server?

Vishal7591 avatar Jan 02 '19 11:01 Vishal7591

@idiglove Sent image with formdata

form.append("profilePicture", { uri: "file://"+this.state.picUri, type: "image/jpeg", // or photo.type name: this.state.responseName });

affanhashone avatar Jun 29 '19 13:06 affanhashone