Inserting Images with Binding

Avatar

Avatar

ColinMHart

Avatar

ColinMHart

ColinMHart

21-05-2009

I have an image I want to put into a standard issue PDF.  the binding comes from a SQL query and the value is the ID of the record.  We have images that match the values of the ID's so I want that image to display on the form.  normally this is super easy but I am new to LiveCycle and building forms.

any suggestions?

Image url would look like

http://www.somesite.com/1.gif

where 1 is the ID of the record that got pulled

thanks in advance

Replies

Avatar

Avatar

parth_pandya

Avatar

parth_pandya

parth_pandya

21-05-2009

Hi ColinMHart,

To insert the image into the PDF you would need to store that image into an XML element which is bound to Image field in your form. BUT the trick is to store that image into the format that PDF is expecting it in. Your image data needs to be in base64 encoded format and then it would be shown in PDF form correctly.

regards,

Parth Pandya

Blog: http://livecyclekarma.wordpress.com

Avatar

Avatar

Michael_Chaize

Employee

Avatar

Michael_Chaize

Employee

Michael_Chaize
Employee

24-05-2009

Hi,

I am presenting some tips to generate PDF with LiveCycle Data Services in this video:

http://tv.adobe.com/#vi+f1472v1036

I am talking about the encodeImageAsBase64() function.