gpt4 book ai didi

java - 在android中存储大量图像

转载 作者:搜寻专家 更新时间:2023-10-30 21:11:18 24 4
gpt4 key购买 nike

我正处于为安卓手机制作数据库应用程序的计划阶段。我的要求之一是能够为用户提供离线访问。我想知道存储大量图像(大约 40 万张)的最有效方法是什么。

哦,图像已经过预压缩/优化以供移动查看。市场上 apk 的 50mb 限制不会成为问题。

最佳答案

你必须开发简单的逻辑。假设你有连接然后下载所有图像。现在你有两种方法可以在没有连接的情况下访问这些图像-----

Store all images in data base as blob(But it not feasible to store huge amount 
of data to database)

第二..

Store all images in sdcard(by making a folder in it) and now store link of these
images in data base Table.Suppose you donot have connection then first fetch
image path from DB Table then fetch file from sdcard and display

关于java - 在android中存储大量图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8192833/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com