These are chat archives for lwansbrough/react-native-camera

8th
Jun 2017
Tarang Hirani
@tarang9211
Jun 08 2017 11:25
Hey Guys, I'm using this module to take an image and send it to my express server. At a later point, I also need to send this back to the client from the server. Do I need the base 64 format for this?
Tarang Hirani
@tarang9211
Jun 08 2017 11:38
This is the code snippet I have
takePicture = () => {
    if (this.camera) {
      this.camera.capture()
      .then((data) => {
        console.log(data)
        this.setState({ imgData: data.path })
      })
    }
  }