how to store image in postgres using Flask model
<p>I am trying to store an image using flask model. I don't know how to store the image in postgres, so I have encoded the image to <code>base64</code> and I am trying to store that resulting text in postgres. It is working but is there any recommended way to store that encoded text or the image in postgres using flask model</p>

<pre><code>class User_tbl(db.Model):
  id = db.Column(db.Integer,primary_key=True)
  mobile=db.Column(db.String(13),unique=True)
  country=db.Column(db.String(30))
  image=db.Column(db.String(256))

def __init__(self,mobile,country,image):
    self.mobile=mobile
    self.country=country
    self.image = image
</code></pre>