‎2009 Sep 01 3:55 PM
Hallo experts,
can some one tell me how can I convert a pdf file to binary or hex.
regards
rana
‎2009 Sep 01 4:16 PM
Use fm GUI_UPLOAD with file type as BIN , this way you can upload the PDF and and output comes out this function module in binary content
a®s
.
‎2009 Sep 01 4:21 PM
Hallo,
I want to upload the file from application server.
thanks
rana
‎2009 Sep 01 4:28 PM
Then you can use the OPEN DATASET commands with MODE options to read the file in BINARY mode and bring the content into an XSTRING variable.
a®
‎2009 Sep 01 4:31 PM
Hallo and thanks,
my code is
OPEN DATASET s_filename FOR INPUT IN BINARY MODE.
CLOSE DATASET s_filename.
can you tell me how can I proceed further
regards
rana
‎2009 Sep 01 4:41 PM
After
OPEN DATASET lc_dataset FOR INPUT IN BINARY MODE.
then call function
SCMS_XSTRING_TO_BINARY
This will convert XSTRING to Binary
a®
‎2009 Sep 01 4:44 PM
Or
Try to use
CALL FUNCTION 'DX_FILE_READ'
to read file from App server
a®