Attach and Retrieve images NoSQL


show more Attaching and retrieving images provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Up and Running with NoSQL Databases show less
please wait ...

Attaching and retrieving images

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 ...

Attaching and retrieving images
Video duration: 2m 1s 56m 57s Intermediate

Viewers:

Attaching and retrieving images provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Up and Running with NoSQL Databases

please wait ...