存储在Android的SQLite中的视频? [英] storing videos in sqlite in android?

查看:2261
本文介绍了存储在Android的SQLite中的视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我创建的Andr​​oid应用程序,它是导航系统内部的3D某建筑中有一项功能,允许用户输入一个位置和目的地(例如讲堂办公室#XXX)和我已经完成建筑在3ds Max中的3D视图和视频文件,所以我想知道我怎么可以存储在sqlite的这些视频存储在哪里?并显示他们当用户搜索他们?我很困惑,如果我被它们存储在数据库中做正确的事,或有另一种更简单的方法?请我迫切需要帮助。谢谢

Hi I'm creating an application for android which is a 3D inside navigation system of a certain building the has a feature that allows the user to enter a location and destination (e.g lecture hall to office#xxx) and I've done the 3D view of the building in 3Ds max and stored as video file so I was wondering about how I can store all these videos in sqlite? and displaying them when the user search for them? I'm quite confused if I'm doing the right thing by storing them in a database or is there another easier way? Please I need help urgently. Thanks

推荐答案

您不要将视频存储在你的SQLite数据库。在你的数据库中存储二进制数据将导致超烂的表现。通常的做法是简单的文件路径将视频存储在数据库中。然后,当你做一个查询,使用文件路径来加载视频需要。

You don't store the video in your sqlite database. Storing binary data in you database will lead to super bad performance. Common practice is to simply store the filepath to the video in your database. Then when you do a query, use the filepath to load the videos as needed.

这篇关于存储在Android的SQLite中的视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆