下载 Firebase 数据为 Excel 文件或 PDF 文件。

huangapple go评论109阅读模式
英文:

Download Firebase data as Excel file or PDF file

问题

我有一个应用程序,在其中使用RecyclerView显示来自Firebase的项目详细信息。

当用户点击下载按钮(红色框)时,应从Firebase下载该特定项目的数据。

我搜索了很多以找到答案,但每个人都只是告诉我从Firebase控制台下载它。
我知道可以从Firebase控制台下载CSV文件。
我需要从我的应用程序中下载它并将其存储在用户的本地存储中。

如果可以将其下载为Excel文件或PDF文件,将更有帮助。

英文:

I have an app where the details about a project from Firebase are displayed in Recyclerview.

下载 Firebase 数据为 Excel 文件或 PDF 文件。

When a user clicks the download button (Red Box), the data of that particular project should be downloaded from the Firebase.

下载 Firebase 数据为 Excel 文件或 PDF 文件。

I searched a lot to get an answer to this. But everyone just telling to download it from Firebase Console.
I know that csv file can be downloaded from Firebase console.
I need this to be downloaded from my app and store it in the local storage of the user.

It will be more helpful if it can be downloaded as an Excel file or PDF.

答案1

得分: 1

Firebase实时数据库没有提供以CSV格式下载数据的API。如果您想以CSV格式向用户提供数据,您需要通过REST API或SDK下载数据,然后在您的应用程序代码中将其转换为CSV格式。

英文:

The Firebase Realtime Database does not have an API to download data in CSV format. If you want to provide the data in CSV format to your users, you'll have to download it through the REST API or SDK, and convert it to CSV format in your application code.

huangapple
  • 本文由 发表于 2020年8月6日 20:36:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/63283775.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定