public function readFromURL($url, $symbology)
    {
        if ($url == '')
            throw new Exception('URL not specified');

        if ($symbology == '')
            throw new Exception('Symbology not specified');

        //build URI to read barcode
        $strURI = Product::$baseProductUri . '/barcode/recognize?type=' . $symbology . '&url=' . $url;

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'POST', '', '');

        $json = json_decode($responseStream);

        if ($json->Code == 200)
            return $json->Barcodes;
        else
            return false;
    }
public function readFromURL($url, $symbology)
    {
        if ($url == '')
            throw new Exception('URL not specified');

        if ($symbology == '')
            throw new Exception('Symbology not specified');

        //build URI to read barcode
        $strURI = Product::$baseProductUri . '/barcode/recognize?type=' . $symbology . '&url=' . $url;

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'POST', '', '');

        $json = json_decode($responseStream);

        if ($json->Code == 200)
            return $json->Barcodes;
        else
            return false;
    }
public function readFromURL ( $ url , $ symbology ) { if ( $ url == '' ) throw new Exception ( 'URL not specified' ) ; if ( $ symbology == '' ) throw new Exception ( 'Symbology not specified' ) ; //build URI to read barcode $ strURI = Product :: $ baseProductUri . '/barcode/recognize?type=' . $ symbology . '&url=' . $ url ; //sign URI $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'POST' , '' , '' ) ; $ json = json_decode ( $ responseStream ) ; if ( $ json -> Code == 200 ) return $ json -> Barcodes ; else return false ; }
Read Barcode from External Image URL

@param string $url URL of the barcode image.
@param string $symbology Type of barcode.

@return array
@throws Exception
Read Barcode from External Image URL