Passing pdf file to server

  • 339 Views
  • Last Post 1 weeks ago
Ericus posted this 26 August 2017

Morning

The help says:

http(s)://cloud.ocrsdk.com/processImage and then says 'The image file is transmitted in the request body'

How do I do that?

In my application Windev I use something like this;HTTPCreateForm("FORM")
HTTPAddParameter("FORM", "method", "processImage")
HTTPAddParameter("FORM", "language", "english")
HTTPAddParameter("FORM", "exportformat", "pdfSearchable")
HTTPAddFile("FORM", "filepath", "D:\Google Drive\ScanSnap\Ekhuhurleni2.pdf")
HTTPSendForm("FORM", "http://cloud.ocrsdk.com")

I get a result that says 'Object moved to /Account/Welcome

Any suggestions please?

 

Anna Savinova posted this 1 weeks ago

You should send request to "http(s)://cloud.ocrsdk.com/processImage"not "http(s)://cloud.ocrsdk.com/". So try to remove the line "HTTPAddParameter("FORM", "method", "processImage")" and change the target URL.

Close