Skip to Content
avatar image
Former Member

File does not begin with %PDF


I have I developed a application WDA to display the employee photo. I have used the component InteractiveForm in layout to do this.

I got the photo from archivelink (BINARY) and convert it to XSTRING. See the source below:

call function 'SCMS_AO_TABLE_GET'


arc_id = archivelink-archiv_id

doc_id = archivelink-arc_doc_id

comp_id = 'data'


length = lv_length


data = lt_data


error_http = 1

error_archiv = 2

error_kernel = 3

error_config = 4

others = 5.

if sy-subrc ne 0.



call function 'SCMS_BINARY_TO_XSTRING'


input_length = lv_length


buffer = foto


binary_tab = lt_data.

The problem is: Some machines are showing the adobe error "File does not begin with %PDF", therefore others have no problem.

What I can do to solve it ?

Can anybody help me?

Thanks a lot,

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 01, 2008 at 02:46 PM

    could be a setting in the folder options->file types of your windows explorer

    But, to display an image, I personally would use an image UI element.

    or maybe a file download to make it a clickable link (will open a new window containing the photo)

    Add comment
    10|10000 characters needed characters exceeded

    • I'm afraid that Web Dynpro overrides the browser context menu and replaces it with its own context menu. If you want to offer a download image option, you will have to add that yourself. Just add a menu or button to trigger the action. In the server event you can use the method cl_wd_runtime_services=>attach_file_to_response to push the binary content back to the desktop.