Possibly a newbie question (which I am), but I'm stuck. I try to create a file upload form to store small binary (audio) files in a DB.
I use Deform for my form which contains a FileUploadWidget. Great. But after this I hit a brick wall. How to pass the data from Deform filedict into a SqlAlchemy LargeBinary? The 'fp' attribute is a file-like object, but the LargeBinary field (actually its handler (?!) DBAPIBinary) expects a buffer. Maybe this is solved with elementary Python stuff, but googling for "python file to buffer" didn't lead to any helpful examples. Any help is much appreciated. Kind regards, Keesjan -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
