Hi Support,
I am trying to display image from Rest APi into Img widget.
Img image=new Img();
image.setSrc("data:image/jpeg;base64,"+rec.getAttribute("imageFile"));
I am getting below error
GET data:image/jpeg;base64,_ ... net::ERR_INVALID_URL
Server code:
if (resp.isSuccessful()) {
Map<String, Object> map=new LinkedHashMap<String, Object>();
map.put("imageFile", Base64Utils.toBase64(resp.body().bytes()));
response.setData(map);
I am getting right document to implement this.
Could you please guide me right documentation or help how should I proceed with
Thanks,
Revan
I am trying to display image from Rest APi into Img widget.
Img image=new Img();
image.setSrc("data:image/jpeg;base64,"+rec.getAttribute("imageFile"));
I am getting below error
GET data:image/jpeg;base64,_ ... net::ERR_INVALID_URL
Server code:
if (resp.isSuccessful()) {
Map<String, Object> map=new LinkedHashMap<String, Object>();
map.put("imageFile", Base64Utils.toBase64(resp.body().bytes()));
response.setData(map);
I am getting right document to implement this.
Could you please guide me right documentation or help how should I proceed with
Thanks,
Revan
Comment