What is the actual traceback dumped out to the Apache error log file if any?
What other error messages appear immediately prior to the traceback? Did you restart Apache to pick up your code change before testing again? Graham On Jun 3, 2:56 am, Graham Stratton <[EMAIL PROTECTED]> wrote: > Hi, > > I'd like to deploy my app withmod_wsgi. I thought I had it working, > but then realised that the images weren't working. The action for an > image is really simple: > > def image(self, id): > image = self.session.query(Image).get(int(id)) > return Response(image.image, 'image/jpeg') > > But when I request an images I get: > > TypeError: expected string or Unicode object, buffer found > > in my apache error log and no data is returned. I tried changing the > return to > > return Response(str(image.image), 'image/jpeg') > > I'm not sure whether that makes sense, but it didn't seem to help. > > Any advice would be greatly appreciated. > > Thanks, > > Graham --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
