Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Inserting Images with Binding

ColinMHart
Level 1
Level 1

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

0 Replies
parth_pandya
Level 3
Level 3

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

Michael_Chaize
Employee
Employee

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.