What are you intending to do with the downloaded file? Will it be used solely by the app, or you attempting to download some othe media (photo, video, music, etc.) to be referenced outside the app.
If you want to do the former I think I can help...
The later, I am not sure how to, or if you can, do.