tag:blogger.com,1999:blog-18669579016193205772024-02-20T11:15:44.274-08:00Curiously Recurring Thought Patternsenigmahttp://www.blogger.com/profile/15748330382825297094noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1866957901619320577.post-76505874926358481112010-12-20T07:04:00.000-08:002011-02-17T09:46:35.781-08:00CouchDB, cURL and ImagesStoring images in CouchDB is quite a common requirement these days. CURL is a nifty little tool to play around with HTTP, so I quickly fired up console, executed a few command lines to quickly upload an image to my CouchDB instance. <br /><br />CURL gives me the details of the HTTP conversation, probably this will help me quickly create client apps which does similar things in any language.<br /><br />If you have your CouchDB instance running in your localhost and you have already created a database (Say <span style="font-weight:bold;">album</span>). The CURL command line will be something like this.<br /><br /><blockquote><br />curl -vX PUT http://localhost:5984/album/1/attachment -H "Content-Type: image/jpeg" --data-binary @/path/to/my_picture.jpg<br /></blockquote><br /><br /><span style="font-weight:bold;">And VOILA !!!</span> <br /><br /><a href="http://localhost:5984/album/1/attachment">http://localhost:5984/album/1/attachment</a>enigmahttp://www.blogger.com/profile/15748330382825297094noreply@blogger.com0tag:blogger.com,1999:blog-1866957901619320577.post-22804641609358014522010-07-19T12:09:00.000-07:002010-09-09T09:57:28.538-07:00InitHi <br /><br />This is yet another attempt to fill up the internet with random ASCII text.enigmahttp://www.blogger.com/profile/15748330382825297094noreply@blogger.com0