On Feb 7, 7:29 pm, "schnuer.com" <[EMAIL PROTECTED]> wrote: > 1) Get images uploaded via the method describe in the upload with > progressbar tutorial in the rough-docs > 2) write image into a StringIO or similar > 3) write a copy into the database > 4) make a thumbnail via PIL > 5) save thumbnail into database > > Now so far i've been getting nothing but errors so i think i've been on the > wrong track. Could someone just quickly list what objects to use in this > process is StringIO the way to go? The code is here below. imageObject is > just an Int. I've been getting decoding errors about character not being in > ascii range which i assume is because it tries to decode the stringIO > object, how do i tell it that it contains binary data?
It often helps to post the exact error you get, so that we can see which statement is causing the problem! I don't see much point in using StringIO here though, unless PIL is unable to deal with string data. You may also get better answers on comp.lang.python since none of this seems to concern Turbogears directly. -- Ben Sizer --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

