I use PIL Image.open() but it show 'list' object has no attribute 'open'
this is my code class Image2(): trans = connection.begin() session = Session() ProductId = session.query(ProductEntity.ProductId).filter(ProductEntity.CompanyId=="2").all() Image = session.query(ProductImageGalleryEntity).filter(ProductImageGalleryEntity.ProductId=="20").all() PicFromDataBase = Image[0].ProductImage try: b = Image.open(str(PicFromDataBase)) except Exception as e: sad = e -- https://mail.python.org/mailman/listinfo/python-list