Hello. I'm new to qt. First of all sorry for my english.

I want to download image from remote server synchronously.

For this i need:
1) Check size of image before downloading (Cancel downloading if size is bigger then some limit)
2) Download SYNCHRONOUSLY (In my case I need this instead asynchronous)
3) Sequre file (eg to prevent some bash script injections etc).
4) Resize image to some default value (eg. reduce to some MaxWidth and MaxHeight or MaxKb if need) and convert to jpg (if file is png or something else).

How can I do this with Qt way?
I have read about QNetworkAccessManager and other classes, but I found only info about asynchronous download (using slots and signals).
Thank you.

P.S. I'm writing qt console application