Save the barcode image in memory stream

2 posts, 1 answers
  1. Dan
    Dan avatar
    14 posts
    Member since:
    Jul 2013

    Posted 28 Oct 2013 Link to this post

    Hi Guys,

    I have a radbarcode with output type set to embeddedpng. Can someone help me to access the generated PNG image and save it in a memory stream?

    Thanks for all your help,
    Dan
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Oct 2013 Link to this post

    Hi Dan,

    Please have a look into the following C# code I tried which works fine at my end.

    C#:
    Bitmap bitmap1 = new Bitmap(RadBarcode1.GetImage());
    MemoryStream stream = new MemoryStream();
    bitmap1.Save(stream, System.Drawing.Imaging.ImageFormat.Png);

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top