Passing pdf file to server

  • 374 Views
  • Last Post 10 October 2017
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 10 October 2017

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
We changed our Privacy Policy and Cookie Policy effective May 25, 2018. Click on the links to find out more.