英文:
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.
When a user clicks the download button (Red Box), the data of that particular project should be downloaded from the Firebase.
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论