Yes this should be possible. You have to take care of two things: file size and used characters.
If RTF format uses any non-printable characters or characters used as segment delimiters or filed delimiters or encoding characters, then you have to uuencode the RTF file, before you enter it into the segment.
If you uuencode the file, then you have some characters, that must be translated into others, as an example:
Replace :
“|” -> “F”
“^” -> “S”
“~” -> “R”
“&” -> “T”
“” -> “E”
“nn” (“nn” is the hexadecimal value for line feed and cariage return) -> “Xnn”
Now enter the file into an Segment. As the file is normaly to big for a translation, we do the following trick:
– pre-translation: save the value (= i.e. the uuencoded and changed rtf file) in an global variable and delete it from the segment;
-post-translation: copy the value from the global variable into the segment.
The receiver has to all transitions backwards.