Problem solved: it seems the .store() function returns a unicode object instead of a string, and unicode can't be inserted into the DB as the filename. It can be fixed by casting the unicode text as a string:
db.t_image.insert(f_image_file = *str(*db.t_image.f_image_file.store(file = image_file_buffer, filename = filename)), **dict__img) That brings up some questions - is it a desirable behavior for .store() to return unicode? Is there something idyosyncratic about my setup that's making that happen, or is this the general case? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.