On Tue, May 19, 2015 at 8:42 AM, <akash.pa...@ranosys.com> wrote: > Hi guys, > I am resizing image using blobproperty but it s giving BadImageError with no > exception supllied. > > Here is my code for resizing: > > bg_image = request.FILES['bg_image'].read() > > obj_partner.bg_image = db.Blob(images.resize(bg_image,1400,758)) // > error line > > and i am uploading image which is less then 1Mb and whose resolution is > (1400 x 762) > > and the field i am taking is Filefield. > > Please reply...
This appears to be Google App Engine models, so you should seek support on the appropriate forums for that. At a glance, db.Blob seems to be how you define an attribute's type, not assign to it. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1JCiDMuouYK2d%3DjjURwqEJ4Wg4g3VKv-jQrW843at2VMg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.