Android Question How to Save Instagram Media Files from a Public URL to Android Device Storage in B4A

karazflowers12

New Member
I am building an Android app in B4A that fetches media files from public Instagram post URLs and saves them directly to device storage. The app works fine for images but when trying to save larger Instagram video files the download completes but the saved file appears corrupted and cannot be played back. I am currently using OkHttpUtils2 for the HTTP request and writing the response bytes to the Files directory. Has anyone handled large Instagram media file downloads in B4A and found a reliable way to stream the response directly to internal or external storage without loading the full file into memory.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…