Hi,
I convert image of camera to base64 string.

Qt Code:
  1. QFile fileImg(url of image); // == camera.imageCapture.capturedImagePath
  2. fileImg.open(QIODevice::ReadOnly);
  3. QByteArray imageData = fileImg.readAll();
  4. QByteArray imageData_Base64 = imageData.toBase64();
  5. xmlWriter.writeAttribute("image",imageData_Base64);
To copy to clipboard, switch view to plain text mode 

I have a string like this:
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAA ......

Now I want show above string as image in qml camera.

Please guide me.