flutter_inappwebview
flutter_inappwebview copied to clipboard
How do you download a blob link?Is there any Workaround?
At the moment I saw your post in stackoverflow on how to initiate a download, but this is not possible for a blob file. Is there a workaround to download a blob file ?
You can try convert blob url to base64 using javascript in WebView and convert it to expected file in dart. Here is a workaround for pdf with example Flutter WebView blob pdf download
Does it work in iOS?
I wrote a solution for both Android and iOS. which may support any type of files.
- Build a simple backend using Fluter with Jaguar or other backend framework
- Convert the blob as formData and post it to Flutter.
The full code: https://github.com/guoguoguilai/flutter-webview-blob-download
@guoguoguilai Does converting any blob object to formdata and then downloading them is correct way ? Can you please add a example. Thanks in advance.
@guoguoguilai Does converting any blob object to
formdataand then downloading them is correct way ? Can you please add a example. Thanks in advance.
Yes. You can check here: https://github.com/guoguoguilai/flutter-webview-blob-download
Did you find any working solutions?
Did you find any working solutions?
Yes. You can check here: https://github.com/guoguoguilai/flutter-webview-blob-download
Any solutions?
still no good solution to it?
Solution here : https://github.com/pichillilorenzo/flutter_inappwebview/issues/2212
This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.