Convert QByteArray to std::istream or std::ifstream
Solved
General and Desktop
-
How can I convert a QByteArray to std::istream or std::ifstream? Without saving QByteArray in a filename. I want to create a istream from the QByteArray, on the runtime, without saving a physical file in memory of QByteArray.
I found that there are so many ways to do the opposite thing..ie, istream to QByteArray.
https://forum.qt.io/topic/75517/std-istream-to-qbytearrayNot really able to make-out how to do the opposite thing.
Regards,
Sayan -