Display word document in flutter app from url - firebase

I have a docx file saved on firebase and I want to render this documnent in my app so not using an external app to open the document as a number of file libraries do. I have tried flutter_filereader which works perfect for a file on my phone however i cannot use it to open a url. Is this possible? I think converting it to a pdf would work as I can display those from a url, however I cannot find a library that will allow me to convert files to pdf before uploading to firebase?
Any help is much appreciated

You could display the url in-app using flutter_webview https://pub.dev/packages/webview_flutter

You can do this with a simple API call to PdftronFlutter.openDocument
Follow the this link https://www.pdftron.com/blog/flutter/build-a-document-viewer-in-flutter/. This blog said the usage of PdftronFlutter.

Related

Can't access uploaded files through Firebase storage on web

I'm trying to access/download files that have been uploaded to Firebase storage but I can't figure out how to. Some of the files have a create new access token button under the storage location which gives me a link to the file on the web. Unfortunately, this is only a few files and seems to only be ones uploaded from localhost?
I can't find any reference to this on the documentation, this should be achievable through the Firebase dashboard?
I've tried setting the access rules to allow reads in all cases which hasn't helped.
Thanks
In general, you're supposed to use getDownloadURL(), as shown in the documentation, from within your web or mobile app to generate a download URL for use within your app. Typically, the console is only used to revoke the tokens that enable to download of each file through that URL.
If that's not specifically what you're trying to do, perhaps you want to read up on other was to make data public in Cloud Storage. The Firebase console is not really the best mechanism to manage downloadable content.

Download URL not present in Firebase Console

There is no url present in the file location of firebase storage. Instead it gives a storage path. Please help.enter image description here
Just click the image and there is your URL:
To get the URL through Flutter, you can follow this answer:
https://stackoverflow.com/a/54086124/11231634
Download URLs are not/no longer automatically generated when you add a file to Cloud Storage through the Firebase SDK. Instead you will have to call getDownloadURL() to generate such a download URL. This URL will then also show up in the Firebase console.
Unfortunately, in my case, some files cannot be downloaded as Vitor suggests. I don't know why, but there's just a plain text instead of link.
Solution
Just download it via Cloud Storage at Google Console. This works every time.

Shiny image hosting

I have been trying to make a very simple app using shiny that basically does this:
Let's users upload a photo
Downloads a csv file with the public links to each photo (this is to be used by shopify to download the images and re-upload to their servers)
I am having trouble doing the second part.
Both Dropbox and Google Drive let me store objects using their API and r packages, but they have deprecated a url to the direct object, instead opting for a "preview" version of the file, which of course makes shopify go crazy and reject my url.
Any thoughts as what other storage service or workaround that can work?

How can I view an uploaded docx file in asp.net

I am working on a download management system in asp.net and I can upload and download a docx file. I want to view the uploaded file. I tried using google API but looks like I have to upload the file in google drive itself in order to be able to view it from google drive. I don't want to upload the file in google drive. Is there any other API that helps me to just view the uploaded docx file?
It would be even better if it can be viewed as well!
Use an iframe to embed File.embedLink, documented on
https://developers.google.com/drive/v2/reference/files#resource
I assume you know how to upload files in ASP.net
Using Office Web Apps you can achieve that, provide like of your uploaded document on your site, when the user clicks it will open in the browser it self Link, Read the documentation
Here is the link for API Site

How to create attachment field in dxtreme?

I really wanted my form to have an attachment field wherein a user can browse a file. I came to read the documentation but cannot find an example on how to create an attachment field. Does anybody know how to do that?
unfortunately, devexpress does not provide the capability to upload files, my recommendation is to use phoneGap API instead.
PhoneGap File API
PhoneGap Media API
Also Check FileTransfer Object to upload or download files to and from the server.
You will find full examples in the link I provided.

Resources