Reputation: 680
I am trying to embed MS Documents in a Flutter Web App. Documents are stored on Firebase Storage. I am using MS Web Viewer to display them in browser.
This works without any problem:
The following two versions where the documents are hosted on Firebase are not working:
Either via Firebase directly nor Google Cloud Storage I get it to work.
The individual links in the above example work without any problems and you can download the file.
I presume the MS Web Viewer can not cope with the URLs. Is there any way I can adapt or change anything in Firebase to get it to work? Looking in Firebase Storage Console the files are listed with the correct type as application/vnd.ms-powerpoint.
Upvotes: 0
Views: 607
Reputation: 1
Encode the signed URL before adding it to https://view.officeapps.live.com/op/embed.aspx?src=
. You can use online tools to encode URLs like https://www.urlencoder.org/
Upvotes: 0