on 11-10-2004 12:07 PM
Hi all,
i want to create a function module getting a binary data stream of undefined length as importing parameter, which saves this binary data stream as it is.
Tried with SCMS_BINARY_TO_XSTRING and then e.g. Mime Repository Class Interfaces using xstrings, but this BINARY_TO_XSTRING needs a table of binary data of DEFINED length.
Any advice? Thanks in advance!
Christoph
Hi Cristoph,
If you want save a binary stream in a file you can do it as follows:
<i>REPORT zzzztest.
CONSTANTS file TYPE text80 VALUE 'test'.
DATA stream TYPE xstring.
stream = '4142434445'.
OPEN DATASET file FOR OUTPUT IN BINARY MODE.
TRANSFER stream TO file.</i>
Of course when you open this file by a text viewer you'll see 'ABCDE'.
p.s.:
addition 'IN BINARY MODE' is default so you can omit that.
:bus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christoph,
Where you want the binary data stream saved to? If it is a DB table, then you can define the a custom table with type XSTRING as per my colleague answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Christoph,
what Release you are on? At least with 6.10 or higher you can store String / XStrings on Database. You just can define the XString as part of the DB table definition.
Kind Regards
Klaus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.