how about: open('file_to_write', 'wb')

On Sun, Feb 24, 2008 at 3:34 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:

>
> That works for simple text files, but not for complex ones such as
> images, pdf, etc...
>
>
> On Feb 24, 12:15 pm, Justin Davis <[EMAIL PROTECTED]> wrote:
> > Probably the easiest way to save the file is to do something like
> > this:
> >
> > f = open('file_to_write', 'w')
> > f.write(x['myfile'].value)
> > f.close()
> >
>
> >
>


-- 
"Chance is always powerful. Let your hook always be cast. In the pool where
you least expect it, there will be fish."

Ovid (43 BC-17 AD)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to