[progress Communities] [progress Openedge Abl] Forum Post: Re: Http Client Passing Bytes()...

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

Peter Judge

Guest
The easiest way in ABL (and platform neutral) is to use the COPY-LOB statement. DEF VAR mBook AS MEMPTR. DEF VAR oBlob AS CLASS OpenEdge.Core.Memptr. // Read from disk to primitive memptr COPY-LOB FILE c:/temp/book.pdf TO mBook. // Put into a form the HTTP client can use oBlob = NEW Memptr(mBook). // no leaks SET-SIZE(mBook) = 0. // Then do what you’re doing.

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