Can Bluemix Cloudant synch api have a field to store image? - ibm-cloud

I have a mobile app that uses Mobilefirst Cloudant sdk to work on top of Bluemix.
One type of the json document in the Cloudant DB needs to have an image as a field. Can you give me some example in Swift as how to store and read it?
I have a Cloudant local datastore on the device, it is synched with the server. So I shouldnot need to worry about the performance?
Thanks.
Jen

Assuming you are using CDTDatastore, you should use the attachment's API which is designed to hold binary blobs, such as images, see using attachments in the CDTDatastore documentation. You should also read up about attachments and their possible performance implications in the Cloudant Documentation

Related

Is there a connectivity possible between google firebase and AWS MongoDB

I have data getting stored in Google firebase (i.e. output of google vision API). I need the same data to get stored in MongoDB which is running on AWS. Is there a connectivity possible between Google cloud and AWS for data migration?
There is no out of the box solution for what you're trying to accomplish. Currently Firestore supports exporting it's data as documented here though the format of the export is probably not something MongoDB could import right away. Even if the format was compatible you would need some kind of data processing pipeline to handle the flow from side to side.
Depending on how you're handling the ingestion of Vision API results you might be able to include code to also send that data to MongoDB. If that's not the case you might need to design a custom solution for this particular use case.

IBM cloudant NoSql communication with Unity

I am a bit of a newbie when it comes to databases. Ive created a Nosql db on the IBM bluemix platform and I would like to access it from unity.
I was wondering if the www class would be sufficient to query the database? Would I need to add authentication etc? I can find samples for firebase and Aws with unity easily but I'm flying in the dark a bit with regards to cloudant
has anyone done this before?
The Cloudant database doesn't require any "drivers" or any special libraries to work with Unity. As long as you can make HTTP requests from your application, then Cloudant will be able to act as a data store.
You might want to try the Unity WebRequest object which is a lower-level abstraction than the 'www' library you suggest.
The Cloudant API Reference is here.

Syncing data between sqlite and mongo using meteor, cordova

I am developing a hybrid Cordova app (but only for Android platform) using Meteor.
App should have offline support, in a way that a user can add objects that are stored offline, in a SQLite database, and after the user connects to Internet, sync the data with server (Mongo database).
Problem is a can't find any solution for synchronisation.
I have looked at GroundDB that provided the mechanism for synchronization I need, but stored data in localStorage which doesn't provide enough storage. In newer versions it doesn't provide sync mechanism, only cashing.
Do you have any suggestions or experience with this type of problem? Any help would be much appreciated.
You could look at LokiJS, which is in a high performance JS database, with features to sync to Mongo.
I haven't used it myself, but from looking at the site, it may do what you need. http://lokijs.org/#/
You can also check out MongOGX which is a Javascript "clone" of mongo for the front end

Connect to Parse.com as a data source for analytics

Can anybody tell me how i connect to Parse.com in order to use it as a data source for some analytics software i'm using?
As far as i'm aware Parse.com uses MongoDB as its backend. I can chose MongoDB as the data sourse in my analytics software, but it wants a URL in this format:
mongodb://hostname:27017/database
Does anybody know how i can connect to Parse.com using this method? I certainly don't see anything in the Parse.com docs that tell me how to connect in this fashion.
Thanks.
You can't. Parse is not a database you can access directly. They provide you the storage and an API to read/write the data but never direct access to the underlying database.

How to connect to MongoDB in an iPhone App?

now I have an iPhone App and basically I want to exchange data from my database (MongoDB) on a server.
Could you please tell me exactly what I should do?
Forgive my innocence, I am a beginner in this area...Thank you very much ahead of time!!
I think you have two options to talk to mongo :
1) Use the rest interface http://www.mongodb.org/display/DOCS/Http+Interface
2) Use Objective-C driver: https://github.com/timburks/NuMongoDB
If you're not completely tied to MongoDB, have a look at CouchDB. It's essentially the same thing as MongoDB (JSON document store) but for the web. They have a nice built-in REST interface which makes database interaction in mobile/server environments very nice.
http://couchdb.apache.org/
In addition to Sid's options, you can also build your own backend that talks to mongodb, that communicates via REST (in your language of choice). This way you can pool your connections on the backend and avoid connectivity issues from the devices.