Unable to use file mode of OCR

What is the way to use file mode for OCR ?

Hi, just to clarify: What you mean with file mode? Upload a file to the OCR API?

yes. I am continuingly facing errors in that. Please suggest some example that i can follow