Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read and write BSON documents in Android

Tags:

android

bson

Dear All, Can anyone tell me that how to read and write BSON document in Android. Thanks in Advance. Irfan

like image 730
Irfan Avatar asked Apr 28 '11 12:04

Irfan


People also ask

How do I read a BSON file?

If you cannot open your BSON file correctly, try to right-click or long-press the file. Then click "Open with" and choose an application. You can also display a BSON file directly in the browser: Just drag the file onto this browser window and drop it.

Is BSON human readable?

BSON needs to be parsed as they are machine-generated and not human-readable.

How do I open a BSON file in MongoDB?

Import BSON/mongodump to MongoDB Open the Import Wizard. Then, select BSON – mongodump folder or BSON – mongodump archive as the import format. For both types, you will need to configure a 'mongorestore' executable under Preferences > MongoDB tools.

What is BSON data type?

The BSON data type is the binary representation of a JSON data type format for serializing JSON documents. When you insert JSON documents through the wire listener with MongoDB API commands, a BSON column that is named data is created in the specified collection.


1 Answers

Not a ton of choices: I'd recommend the https://github.com/paracycle/BsonME library (as linked from http://bsonspec.org/#/implementation). Seems kinda sparse out there, unless you want to either swallow the entire mongodb driver or incorporate all of the Jackson library into your code, and I don't know what kind of file size/dependencies those impose.

EDIT: Let us know what you find, kind of interested in this myself.

like image 89
Femi Avatar answered Oct 16 '22 11:10

Femi