it’s easier to just use the functions ofSaveURLAsync(url,path). the returned int is the id of the request in case you want to remove it in case it keeps failing and also to identify when it has finished (although you can also use the url for that)
If you want to get a notification when it ends downloading add a method like:
You are right, the problem was with the absolute path.
What I see now is that with both ofSaveURLAsync() and ofSaveURLTo() I can save poperly text files but when I save binary files they seem to be somehow corrupted.
Is there anything else to set to transfer binary files?
are you in windows? there’s a problem with binary files someone discovered in windows some days ago, we are trying to solve it, will upload the changes to github and post in the forum as soon as it’s fixed but it seems it’s a problem with setting the binary mode as ios::binary instead of ios_base::binary in ofFile