Skip to Content
avatar image
Former Member

Show image from binary data (XSTRING field)

Hi all,

I would like to show a dynamic image in my Interactive Adobe Form.

I have a XSTRING field in the form interface which has the binary data of the image.

In the form, I have created an image field and mapped with this field, but image is not showing...

What could I have done wrong?

My form is used inside a WDA.

Thanks in advance,

Nacho.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • Best Answer
    Dec 21, 2009 at 11:50 AM

    Hello, did you set true "embed image data" tab Object - Field for your image field? Otto

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Otto and thanks for your quick answer.

      Yes, I set this option in the image field. This image field is binded to the context attribute (type XSTRING) and the URL field is empty.

      Best regards,

      Nacho

  • Dec 21, 2009 at 12:13 PM

    Check with the following blog: /people/bhawanidutt.dabral/blog/2007/11/15/how-to133-integrate-adobe-form-on-webdynpro-for-abap-and-deploy-it-on-portal

    Otto

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for the link Otto.

      I already have followed all those steps in my application.

      Actually, I can see image data in Adobe Form if I use a text field instead of image field. But, when I use a image field, I only get an empty image field where I can click to upload an image.

      Thanks again,

      Nacho.

  • Dec 21, 2009 at 01:05 PM

    What type (like MIME or extension type, like TIF?) is your image? I guess it can be the wrong type, which the form cannot display. Or there can be a mistake in the content? Are you sure about the way you load the data? Is there a true type xstring not a string? Seems difficult to debug out:(( Otto

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      My image is a normal JPEG image which I can show in the WDA application (by using the same context attribute) but not in the Adobe Form.

      My Adobe Form is interactive (I do not know if that's a problem) and it also uses an XML interface.

      Thanks again for your help Otto.

  • Dec 22, 2009 at 07:53 AM

    I think (but have nothing to prove that) that the problem is with the variable value. To be able to display a picture in the image field, you need to have the data in the specified form. I guess that is some 64 encoding or something which is different from the WD one? This is just a fabulation:))

    But you can test this. Upload this picture into sap repository into tx SE78 then use the proposed coding from the blog and test it. Debug out what is the value of the picture downloaded from SE78 and from your binary.

    Or do you use the SE78 source already? That would be a problem:))

    Regards, Otto

    Add comment
    10|10000 characters needed characters exceeded

    • Hello,

      Could you comment on the statement:

      "Get the image contents from your system in binary format (XSTRING);"

      I have had some success in retrieving the contents of the image using FM BDS_GOS_CONNECTIONS_GET and FM SO_DOCUMENT_READ_API1 but the results are not in XSTRING format.

      Thanks in advance for any help,

      Aaron

  • Mar 30, 2010 at 02:55 PM

    Dear Aaron,

    the next time create your own question thread with the reference to this one and do not hijack the others threads. It will help you as well, because you will be able to assign the poi-nts that will not make the people help you for free:)))))

    Back to your question:

    You can get info regarding this for WD forms here:

    /people/bhawanidutt.dabral/blog/2007/11/15/how-to133-integrate-adobe-form-on-webdynpro-for-abap-and-deploy-it-on-portal

    Or for Offline forms/ non-WD here:

    another image question - using Regular ABAP not web dynpro and display-a-logo-dynamically-in-adobe-form

    Hope that helps, Otto

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 07, 2010 at 09:04 AM

    Nevermind, welcome, Aaron:))

    Add comment
    10|10000 characters needed characters exceeded

    • I found the solution myself.

      When creating a custom data type to store the Base64 encoded data in the table structure i used 'Predefined data type STRING' instead of 'Domain STRING'.

      I could then succesfully bind this table field to an ImageField on a repeated subform.
      Thanks to Former Member for the solution...