This is a migrated thread and some comments may be shown as answers.

Save the barcode image in memory stream

1 Answer 283 Views
Barcode
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 28 Oct 2013, 06:10 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 29 Oct 2013, 07:04 AM
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.
Tags
Barcode
Asked by
Dan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or