Brian Barto wrote: > On 11/15/07, Jonathan Swartz <[EMAIL PROTECTED]> wrote: > >> http://www.masonhq.com/?FAQ:Components#h- >> i_m_trying_to_generate_an_image_or_other_binary_file__but_it_seems_to_be >> _getting_corrupted_ >> > > Thanks but this link describes an issue different from my situation. > My data is being corupted because the autohandler is printing HTML > data before the subcomponent prints the binary data. And it is not an > option for me to set the inherit flag of the requested component to > undef since it is conditional whether the download.mas subcomponent is > called. > > It is possible to set the inherit flag conditionally? Rather than > doing it in a <%flags> block? That would possibly work. > > Another possibility is to do something like (from memory):
$m->clear_buffer(); $m->print(<binary blob>); $m->flush_buffer(); $m->abort(); ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users