Join Joseph LeBlanc for an in-depth discussion in this video Attaching and retrieving images, part of Up and Running with NoSQL Databases.
- View Offline
While CouchDB makes it possible to store and query JSON-encoded data, it also allows you …to store and retrieve binary files. …CouchDB supports binary data through a feature called Attachments. …Let's add some photos as attachments. …Navigate to the restaurant database. …We have six records at the bottom here that are menu items. …We're going to want to attach photos to all of these menu items. …The first menu item is the key lime pie.…
Click the Upload Attachment button, and then click Browse. …Once you've selected the photo of the key lime pie, click the Upload button. …The key lime pie photo now appears in the Attachments field. …The name of the file and the file size, and the file type are displayed. …Now, click on the file name. …This takes us directly to the image. …Notice that the URL is made up of the database name, the ID of the document, and the name of the file.…
I am going to close this tab now. …This takes us to the stir fry document. …Click the Upload Attachment button again, and then click Browse. …
- What is NoSQL?
- Installing CouchDB on Mac, Windows, and Linux
- Storing data
- Nesting document data
- Specifying search criteria
- Reducing data
- Attaching and retrieving images
- Deploying applications
- Securing CouchDB
- Understanding the CAP theorem