Download file from webapi

Check this thread for more info: