Generating a PDF417 barcode from a Byte array in c#
<p>I need a way of generating PDF417 barcodes from <strong>byte arrays</strong>.</p>

<p>I have found numerous SDKs that can generate barcodes but all of them expect a string as the data instead of a byte array, unfortunately this isn't a possibility since I need to conform to a pre-existing standard</p>

<p>Thanks in advance</p>

<p>Code that I have tried, as requested by Wyatt Earp.</p>

<pre><code>    /// &lt;summary&gt;
    /// Writes the barcode data to a specified location
    /// &lt;/summary&gt;
    /// &lt;param name="data"&gt;Data of the barcode&lt;/param&gt;
    /// &lt;param name="Location"&gt;Location to save barcode&lt;/param&gt;
    public void Write(byte[] data, string Location)
    {
        ///* Keep Automation Barcode Creator
        KeepAutomation.Barcode.Crystal.BarCode KABarcode = new KeepAutomation.Barcode.Crystal.BarCode();
        KABarcode.Symbology = KeepAutomation.Barcode.Symbology.PDF417;
        KABarcode.PDF417DataMode = KeepAutomation.Barcode.PDF417DataMode.Auto;
        KABarcode.CodeToEncode = data;
        KABarcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;
        KABarcode.generateBarcodeToImageFile(Location);
        //*/

        ///* BarcodeLib Creator
        BarcodeLib.Barcode.PDF417 barcodeLibBar = new BarcodeLib.Barcode.PDF417();
        barcodeLibBar.Data = data;
        var BarLibImage = barcodeLibBar.drawBarcode();
        BarLibImage.Save(Location);
        //*/

        ///* PQScan.Barcode Creator
        PQScan.BarcodeCreator.Barcode PQScanBarcode = new PQScan.BarcodeCreator.Barcode();
        PQScanBarcode.BarType = PQScan.BarcodeCreator.BarCodeType.PDF417;
        PQScanBarcode.Data = data;
        PQScanBarcode.PictureFormat = System.Drawing.Imaging.ImageFormat.Png;
        var PQScanImage = PQScanBarcode.CreateBarcode();
        PQScanImage.Save(Location);
        //*/
    }          
</code></pre>

<p>None of these will build since they all expect strings as the barcode data, I need to give them a byte[]</p>

<p>Unfortunately I already deleted the code from the other SDK's but all of them tend to follow the same pattern.</p>

<p>Comprehensive list of SDK's I have tried are:</p>

<ul>
<li>SharpPdf417</li>
<li>ZXing</li>
<li>PQScan.BarcodeCreator</li>
<li>TBarcode</li>
<li>KeepAutomation.Barcode</li>
<li>BarcodeLib</li>
</ul>

<p>All of these SDKs only accept a string as the barcode data, I need the byte array that is read to be the byte array that is inputted into this void,</p>

<p>I am unable to give you the exact byte array, but it has a size of 454 and uses several different encoding methods throughout the byte array.</p>