Hello dear programmers.

Have searched everywhere on the net for this information but could not find something that helped me solve my problem.

I want to convert an SVG file to an QByteArray. This I want to do because I want to save that SVG image in QByteArray::toBase64() format. And since there in QSvgRenderer constructor there is a possibility to load from a QByteArray I would think this is possible but me not being able to solve this.

Appreciate all the help I can get.