[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: COPY-LOB Raw to File

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
Put the RAW data into a MEMPTR variable; COPY-LOB that wherever. def var r1 as raw . define variable mdata as memptr no-undo . put-string (r1, 1 ) = 'abcde' . mdata = r1. copy-lob mdata to file session : temp-dir + 'raw.out' . set-size (mdata) = 0 . And you can do the reverse on read. The RAW variable is automatically cleaned up, but you’ll need to manually SET-SIZE() on the MEMPTR to prevent memory leaks.

Continue reading...
 
Status
Not open for further replies.
Back
Top