I am trying to add an image to my PDF document directly from my SQL database. I see in the COM/ActiveX library there is an AddRawImageData method... is there anything similar in the version I am using? I have scoured the help but can't find anything.
I am using version 3.0.3.0 of the Generator
Thanks!
Image from SQL DB
Re: Image from SQL DB
Support · Mar 25, 2008Hello,
You can use the ImageData class in .net for this. You can create the images from byte array or stream or by using a physical path also without any problem. You can reuse this ImageData object if you are going to add the same image to the PDF again. Following is the sample code for this.
page1.Elements.Add( new Image( ImageData.GetImage( byteArray ), 0, 0 ) );
You can refer to the Images
topic on our help documentation.
Thanks,
ceTe Software Support Team.