Viewers: in countries Watching now:
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. Click the stir fry photo, and then click Upload. Again, it's uploaded the stir fry photo to the correct document. You can also upload multiple files to the same document. Click the Upload Attachment button again and then click Browse. I am going to select greenbeans.jpg and click Upload.
You'll notice we now have greenbeans and stirfry as attachments of this document. To remove greenbeans, click the X button. Before moving away, click the Save Document button. This will record the deletion of the greenbeans.jpg photo. You can continue by adding the remaining photos to the appropriate menu items. CouchDB makes it possible for you to store binary files along with your schema-less data. Once you know how the URLs are structured, files can be retrieved through HTTP.
There are currently no FAQs about Up and Running with NoSQL Databases.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.