Webview download problem

Downloading files from login(username and password) page corrupts downloaded files and files are not downloading fully, i checked with get file size on webview download starts if it shows 50kb but downloaded file is in 13kb ,same happens for pdf, excel…But this works fine on chrome…is there any process for downloading this type of situations?

Note: files are transaction statements and payment receipts

Tried with custom webview, extended webviewer, custom download, extended downloder, download component but got same result

IMG_20211222_184138