Leave feedback
  • Question

    Create a barcode from Base64 encoded image string

Enter a new topic
  • Andrew Day Andrew Day
    0 likes 632 views

    Hi,

    I have from a value passed to StreamServe from a .NET application.  The value is a string representation of a barcode image that is then encoded to Base64 and passed to StreamServe.  I can decode from Base64, but how can I reproduce the barcode in StoryTeller from this string, which represents the image rather than it being the data?

    Regards,

    Andrew Day

    Monday 02 May, 2016
  • Best Answer
    Andreas Hjelle Andreas Hjelle
    0 likes

    Hi,

    Sorry, a bit quick.

    On the Pageout / StoryTeller add an image with a variable alias. For instance $myBarcodeImage. Then Save the incomming string, decode it and save it as an image: \\myServer\myIncommingBarcodeImage.png . Then set

    $myBarcodeImage = "\\myServer\myIncommingBarcodeImage.png";

    Tuesday 03 May, 2016
  • Andreas Hjelle Andreas Hjelle
    1 likes

    You have to save the string to a file and then output the file on the document.

    regards,

    andreas

    Monday 02 May, 2016
  • Andrew Day Andrew Day
    0 likes

    Hi Andreas,

    Thanks for your quick reply, but what do you mean by "output the file on the document"?

    Regards,

    Andrew Day

    Tuesday 03 May, 2016
  • Andreas Hjelle Andreas Hjelle
    0 likes

    Hi,

    Sorry, a bit quick.

    On the Pageout / StoryTeller add an image with a variable alias. For instance $myBarcodeImage. Then Save the incomming string, decode it and save it as an image: \\myServer\myIncommingBarcodeImage.png . Then set

    $myBarcodeImage = "\\myServer\myIncommingBarcodeImage.png";

    Tuesday 03 May, 2016