Skip to Content
0
Feb 27, 2008 at 09:28 PM

File does not begin with %PDF

25 Views

Hi,

I have implemented the SAP Portal with ESS package in our customer.

I developed a WDA to show the employee photo. I have used InteractiveForm 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'

exporting

arc_id = archivelink-archiv_id

doc_id = archivelink-arc_doc_id

comp_id = 'data'

importing

length = lv_length

tables

data = lt_data

exceptions

error_http = 1

error_archiv = 2

error_kernel = 3

error_config = 4

others = 5.

if sy-subrc ne 0.

exit.

endif.

call function 'SCMS_BINARY_TO_XSTRING'

exporting

input_length = lv_length

importing

buffer = foto

tables

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 ?

Thanks,

Silvio Galery