Expand my Community achievements bar.

Dynamic Image Binding(Image Filed)

Avatar

Level 1

Requirement:

--We  have one URl where images are stored Lets say :  http://abc.com/XYZ.jpg

-- We need to send this image in our PDF

Envirnoment.

-- We are using ADOBE LCES 8.2.1 SP2 ,UNIX envirmoment

What we tried

1)Created Adobe Form xyz.XDP inside that we have created imageField

2)Created mapping with XSD and associated with this image field using data binding

3)created LCA file (attached )  and passing xml data  but its not working

Please suggest wheather we are going right

Or there is other way to do it

Also I have been observed that when I used image filed  and keep the form properties for preview as "static xml form" in desgigner it works fine but if I  used the "Dynamic xml form"  then it didnt work.

This issue is on very high priority in my devlopment. so any helping hand would be very grateful.....

4 Replies

Avatar

Level 10

Hi,

I am not familiar with the environment, in particular UNIX. However I suspect that changing the imageField is a dynamic and therefore the form would need to be saved as dynamic XML (not just set in the preview).

Also I would strongly recommend John Brinkman's blog: http://blogs.adobe.com/formfeed/2009/11/linked_vs_embedded_template_im.html

Good luck,

Niall

Avatar

Level 10

You can not pass URL of the image to the Image Field. Image field will take the input as Base64 Encoded image. You need to convert your .JPG image to Base64 encoded and pass it in the XML input.

If you are using Workbench to render the form, you can find APIs to help you convert the image to Base64 encoding.

Thanks

Srini

Avatar

Level 1

I think -and I'm sure not the only one- this is really, really, really stupid :-\

Would have been much more straight forward to simply keep the path to the image file instead of the whole base64 encoded image data in the xml file.

Sometimes I have to wonder, really, what are they thinking?

Avatar

Level 2

You can reference an image from its URL, but LiveCycle is a bit picky about how you do it.

Just use the following format:

<imageElementName xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:contentType="image/jpg" href="http://path/imagename.jpg"/>