Generate Image from Database to PDF


#1

Hi,
I have iamges in the database.i would like to display them into PDF.
How can i dispaly them.Image1.ImageInfo.File will take only file name.


#2

Dear vvramananet,

Thank you for considering Aspose.

Please refer to Image in the programmer’s guide.


#3

Hi,
Thank you for replay.
I already seen the notes.It shows only the images in the file or URL.
But here images are in databse.It’s DataType is BLOB.
How can i retrieve that data and display.


#4

Dear vvramananet,

Thank you for considering Aspose.

MemoryImage is supported besides file and URL. I think you should load the image into memory and then convert it to PDF. I am not familiar with image in database, but I guess it can be loaded into a bitmap.


#5

Hi,

I had the same problem, I solved it by creating a System.Drawing.Bitmap from the BLOB and then using ImageInfo.OpenType = ImageOpenType.Memory (as explained in the Image guide).
It works like a charm Smile

/Xavier