Hey Y'All,
Please excuse my lill rant. And this being a rant, it's not directed at anyone in particular, so please chill.
I'm fully aware that not everyone is as gung-ho on multiplatform compatibility as I am. And, yes, sometimes you're absolutely sure your app will only be run in a single platform, so why even bother.
But I also have another principle: Please make good use of the batteries that are included in your language. Heck, this is what makes Python so enchanting. You're spoilt rotten from the massive modules/libs/frameworks that it has.
So, my main point is: Why not just use FPHHTPClient and a File Stream?
First of all it forgoes the old file management system with something a bit more modern.
Ok, sure, if you wanna do HTTPS, especially under Windows, the OpenSSL .dlls are a pain to provide. And yes, I'm aware that under Linux we are spoilt rotten because OpenSSL usually comes installed by default in all major distributions.
End of rant!
Now, for Tikani93 in particular:
Were you aware of FPHHTPClient?
Were you aware of File Streams?
One of the awesome things about the above combo is that you pass a File Stream to FPHHTPClient and BOOM, done!!
The download is saved into the file with a single line of code ( Yes, I'm not counting the instantiation and setup of both objects ).
It's easy: You pass the file stream object to the HTTP client and press a button. No need to do in memory shenanigans by hand, because it's all managed by the File Stream.
Let me know what you have to say to this, please.
Cheers,
Gus