PyQt4: Reading binary data from Postgresql fails under Windows
-
Hi and welcome to devnet,
It rather looks like your software doesn't find the PostgreSQL client libraries. Check with something like Dependency Walker
-
Sorry, I've misunderstood your original problem. Saving a byte array in a file named something.pdf doesn't make it a valid pdf file. If you want to create a PDF you should create one using e.g. QPdfWriter
-
A text file works great
-
QFile doesn't know how to write pdf or xml just because you put that extension on the file name. It's your job to provide the right data.
-
It's not OS nor Qt specific. A file extension doesn't do anything magic when writing programmatically to a file