flutter_inappwebview icon indicating copy to clipboard operation
flutter_inappwebview copied to clipboard

How do you download a blob link?Is there any Workaround?

Open adiltirur opened this issue 5 years ago • 10 comments

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 ?

adiltirur avatar Aug 12 '20 15:08 adiltirur

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

wpazio avatar Nov 19 '20 18:11 wpazio

Does it work in iOS?

guoguoguilai avatar Sep 18 '21 14:09 guoguoguilai

I wrote a solution for both Android and iOS. which may support any type of files.

  1. Build a simple backend using Fluter with Jaguar or other backend framework
  2. Convert the blob as formData and post it to Flutter.

The full code: https://github.com/guoguoguilai/flutter-webview-blob-download

guoguoguilai avatar Sep 21 '21 01:09 guoguoguilai

@guoguoguilai Does converting any blob object to formdata and then downloading them is correct way ? Can you please add a example. Thanks in advance.

ycv005 avatar Oct 10 '21 09:10 ycv005

@guoguoguilai Does converting any blob object to formdata and 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

guoguoguilai avatar Oct 10 '21 10:10 guoguoguilai

Did you find any working solutions?

risfat avatar Dec 07 '22 18:12 risfat

Did you find any working solutions?

Yes. You can check here: https://github.com/guoguoguilai/flutter-webview-blob-download

guoguoguilai avatar Dec 09 '22 15:12 guoguoguilai

Any solutions?

RomanSoviak avatar May 11 '23 14:05 RomanSoviak

still no good solution to it?

lucsoft avatar Aug 28 '23 13:08 lucsoft

Solution here : https://github.com/pichillilorenzo/flutter_inappwebview/issues/2212

EArminjon avatar Jul 05 '24 08:07 EArminjon

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.

github-actions[bot] avatar Jul 16 '25 00:07 github-actions[bot]

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.

github-actions[bot] avatar Jul 31 '25 00:07 github-actions[bot]