Hi,
I want to get image from camera and save to XML file.
I pass "photoPreview.source (== image://camera/preview_1)" as URL of captured image to c++ class.
I have this error:
"Open error"

I use this code for save image in XML file:
Qt Code:
  1. QFile fileImg(url_image); // == > photoPreview.source (== image://camera/preview_1)
  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