Questions tagged «blob»

BLOB是作为单个实体存储在数据库管理系统中的二进制数据的集合。

6
如何将图像存储为Sqlite中的Blob和如何检索它?
我想将图像(来自URL)存储到sqlite数据库中。 为此,我使用: db = new DataBase(getApplicationContext()); URL url = new URL("http://sree.cc/wp-content/uploads/schogini_team.png"); URLConnection ucon = url.openConnection(); InputStream is = ucon.getInputStream(); BufferedInputStream bis = new BufferedInputStream(is,128); ByteArrayBuffer barb= new ByteArrayBuffer(128); int current = 0; while ((current = bis.read()) != -1) { barb.append((byte) current); } ContentValues filedata= new ContentValues(); filedata.put(DataBase.IMG_SRC,barb.toByteArray()); db.insert(DataBase.Table_Img, null, filedata); …
75 android  image  blob 

6
如何从sqlite存储和检索blob?
我已经在c ++,python和现在(也许)在C#中使用了sqlite。在所有这些中,我都不知道如何在表中插入Blob。如何在sqlite中存储和检索Blob?
69 sqlite  blob 

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.