0

We want the user to upload their image to the backend and the backend will do some OCR and AI Learning behind the backend. So the image cannot be too low resolution. May i know what is the best approach for uploading HD Images from Frontend to the back end? Should I zip it before sending it to the backend Blob? Does GZIP helpful for this case?

nullmicgo
  • 407
  • 4
  • 19

1 Answers1

0

You can go with the below approach:

  1. You can get images from the user device using an image picker and for pdf you can use document picker

  2. After that upload it using Axios with base64 or URI using backed multipart image upload API example either you can upload using fetch call example

Nensi Kasundra
  • 1,980
  • 6
  • 21
  • 34