FileStorage is just a wrapper around some other file-like object, so it
depends on how the FileStorage was instantiated. Are you using it as part
of a larger framework? Or using it in your own code?

Try looking at storage.stream & storage.stream.__class__ to see what the
underlying file-like object is.

On Fri, May 15, 2015 at 4:35 AM, Kevin Qiu <[email protected]> wrote:

> I have looked into the source and documentation, it's nowhere specified.
> Since the default open mode for file is text mode, brings me the question.
> Earlier, I had a problem to save the data=storage.read() into LargeBinary
> type in sqlalchemy, with an error saying: can't convert unicode to byte
> type.
>
> --
> You received this message because you are subscribed to the Google Groups
> "pocoo-libs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pocoo-libs.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pocoo-libs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to