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...
Continue reading...