J
J
JimboJons2022-03-25 19:56:14
Qt
JimboJons, 2022-03-25 19:56:14

How to download images from VK using Url links?

Using the QNetworkAccessManager Class , I can download images from the Google search feed that end in ".jpg" or ".png". However, when I try to download an image, the link to which is taken from VK, Telegram (I think the list does not end there), I inevitably stumble upon failures. The images just won't load. Probably, this is due to the peculiarities of the links themselves and they need a special approach.
As one option, I was advised to use curl in QT. Does anyone know if this will help? At the moment I'm trying to figure it out myself, but so far I'm getting only one error when I try to run the simplest code using curl.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question