couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whims...@aol.com
Subject Re: definitive guide show examples don't work
Date Tue, 10 Aug 2010 17:46:14 GMT

 I don't believe you can put something that has quotes in quotes. 
Encasing it in single quotes throws an error.
Dan

 


 

 

-----Original Message-----
From: Randall Leeds <randall.leeds@gmail.com>
To: user@couchdb.apache.org
Sent: Tue, Aug 10, 2010 10:37 am
Subject: Re: definitive guide show examples don't work


Put it in quotes?



On Aug 10, 2010 10:17 AM, <whimsica@aol.com> wrote:









 In the definitive guide I am supposed to be able to paste this in for a

show





function(doc, req) {

 return {

   base64 :

     ["iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAsV",

       "BMVEUAAAD////////////////////////5ur3rEBn////////////////wDBL/",

       "AADuBAe9EB3IEBz/7+//X1/qBQn2AgP/f3/ilpzsDxfpChDtDhXeCA76AQH/v7",

       "/84eLyWV/uc3bJPEf/Dw/uw8bRWmP1h4zxSlD6YGHuQ0f6g4XyQkXvCA36MDH6",

       "wMH/z8/yAwX64ODeh47BHiv/Ly/20dLQLTj98PDXWmP/Pz//39/wGyJ7Iy9JAA",

       "AADHRSTlMAbw8vf08/bz+Pv19jK/W3AAAAg0lEQVR4Xp3LRQ4DQRBD0QqTm4Y5",

       "zMxw/4OleiJlHeUtv2X6RbNO1Uqj9g0RMCuQO0vBIg4vMFeOpCWIWmDOw82fZx",

       "vaND1c8OG4vrdOqD8YwgpDYDxRgkSm5rwu0nQVBJuMg++pLXZyr5jnc1BaH4GT",

       "LvEliY253nA3pVhQqdPt0f/erJkMGMB8xucAAAAASUVORK5CYII="].join(''),

   headers : {

     "Content-Type" : "image/png"

   }

 };

}



But it says invalid json string

and won't accept it.



How do I get this to work?



Dan


 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message