On Wednesday, December 28, 2011 1:05:43 PM UTC-5, thstart wrote: > > *As I see I need this:* > * stream = cStringIO.StringIO() * > * return stream.getvalue()* >
Actually, that will do the same thing you've already tried (stream.getvalue() is just a string, so you'll be returning a string, just like your original code). In fact, when I try your original code, it works fine, so perhaps your problem is with the link or routing (i.e., the link isn't properly routing to the download function). Also, in your code, where does the 'file' variable come from? Anthony

