: Robert Newson [mailto:rnew...@apache.org]
Sent: Monday, October 10, 2011 2:24 PM
To: user@couchdb.apache.org
Subject: Re: Fetching Attachment Containing Image
'http://localhost:5984/executabledb_bre/522_10_1/522_10_1.jpg' will
return the raw bytes of your attachment (*not* base64 encoded) so
Hi,
I am trying to fetch a attachment from couch containing
image and trying to render it on browser.
I m uploading attachment using futon
My couch document looks like
{
_id: 522_10_1,
_rev: 3-b02fbfd9d212575488c297e5cb6845e2,
Hi Ajay.
On 2011-10-10 09:42, Ajay Pawaskar wrote:
I am trying to fetch a attachment from couch containing
image and trying to render it on browser.
I m uploading attachment using futon [SNIP]
Hitting http://localhost:5984/executabledb_bre/522_10_1/522_10_1.jpg;
from
'http://localhost:5984/executabledb_bre/522_10_1/522_10_1.jpg' will
return the raw bytes of your attachment (*not* base64 encoded) so the
line of code that is corrupting your attachment is
'Replace(Environment.NewLine, ).Replace(\r,).Replace(\0, )'