How to send files from folder

  • Last Post 25 March 2014
Denis92 posted this 24 March 2014


I developing an metro app for using ABBYY Cloud OCR SDK service. My question is. How can i send image from folder to your API?

        string ID = "id";
        string geslo = "password";
        slika = url_slike.Text; //the url image from textbox

        string glavni_url = "";
        string url = String.Format("{0}/processImage?profile=barcodeRecognition&exportFormat=xml", glavni_url);

        HttpWebRequest zahteva = (HttpWebRequest)HttpWebRequest.Create(url);

        string URLstreznika1 = "";
        if (URLstreznika1.StartsWith(glavni_url, StringComparison.CurrentCultureIgnoreCase))
            zahteva.Credentials = new System.Net.NetworkCredential(ID, geslo);

Anastasia Galimova posted this 25 March 2014

You can send an image with specified path. It is implemented in our code samples, for example, ConsoleTestApp from C# sample:

Sending images from a specified folder is not implemented on our side, you can do it yourself.