Open MITDD6338 opened 4 years ago
Did you get File Path or URI?
@Whitelotuscorp only I get a response 64Base URI but I want to file a path and filesize?
Same issue..
@Yangeok i disabled the baseURL property and added "file:/" with croppedImage url and i can show preview with
<Scanner // useBase64. ( Commented this one ) onPictureTaken={(data: { croppedImage: any }) => this.onPictureTaken(data)} overlayColor="rgba(255,130,0, 0.7)" enableTorch={this.state.flashEnabled} useFrontCam={this.state.useFrontCam} brightness={0.2} saturation={0} quality={1} contrast={1.4} onRectangleDetect={({ stableCounter, lastDetectionType }) => this.setState({ stableCounter, lastDetectionType })} detectionCountBeforeCapture={1} detectionRefreshRateInMS={50} style={styles.scanner} />
onPictureTaken(data:any){
console.log("image",data)
this.setState({ image: file:/${data.croppedImage}
})
}
@Michaelvilleneuve can we help me the how can get the in response file path ,URI,and filesize I was stuck