We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi there,
Thank you for the image picker form.
I want to get the selected image data to post in the API in order to store in database. May i know how to get the image data ?
The text was updated successfully, but these errors were encountered:
Hi @sgkalyans ! On the state object the image data it's saved, specifically on the field you provided the factory.
Sorry, something went wrong.
you can use FormData() and just put the value in uri to send it to server.
FormData()
const uriPhoto = this.state.value['image'];//value of image const uriPart = uriPhoto.split('.'); const fileExtension = uriPart[uriPart.length - 1]; data.append('photo',{uri: uriPhoto, type: 'image/'+fileExtension, name: 'photo'+'.'+fileExtension})
No branches or pull requests
Hi there,
Thank you for the image picker form.
I want to get the selected image data to post in the API in order to store in database. May i know how to get the image data ?
The text was updated successfully, but these errors were encountered: