Image comes to as ByteArray from webservice. I want to convert it to image. How do we do that ?
image comes like this :
You can try this method:
var base64Image = 'data:image/png;base64,iVBORw0KGgoAAAANS...';
<Image style={{width: 50, height: 50}} source={{uri: base64Image}}/>
you can put base64
data after data:image/png;base64,
. As Shown below
var base64Image = 'data:image/png;base64,{PLACE_YOUR_BASE64_DATA_HERE}';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With