title: How to create FIle object from base64 to sent it Django
body: <p>On client side i have some code</p>
  <pre><code>url = 'http://127.0.0.1:8000/api/create_post/'
  headers = {'Authorization': 'Token c63ee5854eb60618b8940829d2f64295d6201a96'}
  image_string = None
  
  with open(&quot;21485.jpg&quot;, &quot;rb&quot;) as image_file:
      image_string = base64.b64encode(image_file.read())
  
  data ={ 'text':'new_post_python', 
          'image':image_string
      }
  
  requests.post(url, json=data,headers=headers)
  </code></pre>
  <p>and i want to create some post through api</p>
  <p>on server side i have such code</p>
  <pre><code>class CreatePostView(APIView):
      permission_classes = (IsAuthenticated,) 
      def post(self,request,format=None):
          Post.objects.create(
              text=data.get('text'),
              author=request.user,
              image=...,
          )
          return Response({'created': True})
  </code></pre>
  <p>Where from .models</p>
  <pre><code>image = models.ImageField(upload_to='posts/', blank=True, null=True)
  </code></pre>
  <p>How can i built image from base64 string on server side ?</p>