couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: Bug in attachments?
Date Sun, 14 Oct 2012 10:35:04 GMT
What version of CouchDB? I can't find any version that tries to call
the non-existent base64:decode/2 function.

B.

On 14 October 2012 03:08, Samuel Williams
<space.ship.traveller@gmail.com> wrote:
> Hi,
>
> I don't know much about erlang but there appears to be a bug in the inline
> attachments functionality:
>
> http://pastie.org/5055155
>
> I just try to upload the following doc:
>
> document = {
> "_attachments" => {
> "foo.txt" => {
> "content_type" => "text\/plain",
> "data" => "Hello World"
> }
> }
> }
>
> data gets encoded using base64.
>
> From the erlang shell:
>
> 27> base64:decode(<<"SGVsbG8gV29ybGQ=">>, []).
> ** exception error: undefined function base64:decode/2
>
> Kind regards,
> Samuel

Mime
View raw message