[jifty-devel] question about binary encoding

Bart Bunting bart at bunting.net.au
Thu Mar 16 18:20:28 EST 2006


Thanks!

That helps a bit :).

It has reduced the output size of the file but I'm still thinking that there
must be something happening on the upload side as the output file is almost
twice as big still.

Is it safe to simply shove binary data into the database (sqlite) in this
case?

Sorry for all the silly questions :).

Bart

> -----Original Message-----
> From: jifty-devel-bounces at lists.jifty.org
> [mailto:jifty-devel-bounces at lists.jifty.org]On Behalf Of Alex Vandiver
> Sent: Friday, March 17, 2006 10:05 AM
> To: Nifty apps in a Jiffy
> Subject: Re: [jifty-devel] question about binary encoding
>
>
> On Fri, 2006-03-17 at 09:35 +1100, Bart Bunting wrote:
> > <% $record->image %> to display it.
> >
> > I'm guessing that this is being escaped as it goes through mason or
> > something?
>
> Mason html-escapes all stuff output through <% %> blocks by default.
> You can keep it from doing this by writing it as:
> <% $record->image |n %>
>
> See http://www.masonhq.com/docs/manual/Devel.html#escaping_expressions
> for more on Mason's escaping.
>  - Alex
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
>



More information about the jifty-devel mailing list