This section demonstrates how to call the Web API service through a client application and generate barcode image from the desired text.
Step 2: Run the Client Project
The following image shows the barcode generated after completing the steps above:
The following example makes a call to the Web API service through HTML as well as WinForms client applications. These clients send a GET request to the service, which returns a barcode stream in response. This response stream can then be saved as image, as the barcode image above.
In the following example, the service url takes 1234567890 in Text parameter and encoding type parameter as Code39x, to generate the above image.
Complete the following steps to call the Web API service.
WinForms Application
HTML Application
Explore detailed demo samples of REST API service to generate barcode at: