Re: 'base64' is not a text encoding; use codecs.decode() to handle arbitrary codecs

2018-02-21 Thread Jason
First, I would recommend not inserting photos or files in the database. Use on-disk storage, S3 or something else and store the link to the asset. Second, this is a Django group, not Flask. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

'base64' is not a text encoding; use codecs.decode() to handle arbitrary codecs

2018-02-20 Thread anurag kumar
Its showing error LookupError: 'base64' is not a text encoding; use codecs.decode() to handle arbitrary codecs. Last few lines when the execution stops are - thumbnail = resize(photo_data, 200, 200) File "/home/anurag/photoshare/app.py", line 406, in resize image_string =