ByteScout Cloud API Server - Barcode Reader API - cURL - Read Barcode From URL - ByteScout

ByteScout Cloud API Server – Barcode Reader API – cURL – Read Barcode From URL

  • Home
  • /
  • Articles
  • /
  • ByteScout Cloud API Server – Barcode Reader API – cURL – Read Barcode From URL

How to read barcode from URL for barcode reader API in cURL using ByteScout Cloud API Server

Step By Step Instructions on how to read barcode from URL for barcode reader API in cURL

Every ByteScout tool includes sample cURL source codes that you can find here or in the folder with installed ByteScout product. ByteScout Cloud API Server was designed to assist barcode reader API in cURL. ByteScout Cloud API Server is the ready to use Web API Server that can be deployed in less than 30 minutes into your own in-house server or into private cloud server. Can store data on in-house local server based storage or in Amazon AWS S3 bucket. Processing data solely on the server using buil-in ByteScout powered engine, no cloud services are used to process your data!.

Use the code displayed below in your application to save a lot of time on writing and testing code. Open your cURL project and simply copy & paste the code and then run your app! Further improvement of the code will make it more robust.

Our website provides free trial version of ByteScout Cloud API Server that gives source code samples to assist with your cURL project.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

ReadBarcodeFromURL.cmd
      
@echo off :: Path of the cURL executable set CURL="curl.exe" :: Direct URL of source file to search barcodes in. set SOURCE_FILE_URL=https://bytescout-com.s3.amazonaws.com/files/demo-files/cloud-api/barcode-reader/sample.pdf :: Comma-separated list of barcode types to search. :: barcode types set BARCODE_TYPES=Code128,Code39,Interleaved2of5,EAN13 :: Comma-separated list of page indices (or ranges) to process. Leave empty for all pages. Example: '0,2-5,7-'. set PAGES= :: Please NOTE: In this sample we're assuming Cloud Api Server is hosted at "https://localhost". :: If it's not then please replace this with with your hosting url. :: Prepare URL for `Barcode Reader` API endpoint set QUERY="https://localhost/barcode/read/from/url?types=%BARCODE_TYPES%&pages=%PAGES%&url=%SOURCE_FILE_URL%" :: Perform request and save response to a file %CURL% -# -X GET %QUERY% >response.json :: Display the response type response.json :: Use any convenient way to parse JSON response and get information about decoded barcodes. echo. pause

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Cloud API Server Home Page

Explore ByteScout Cloud API Server Documentation

Explore Samples

Sign Up for ByteScout Cloud API Server Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Cloud API Server Home Page

Explore ByteScout Cloud API Server Documentation

Explore Samples

Sign Up for ByteScout Cloud API Server Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next