OCLOperators BlobToBase64
Created by Lars.olofsson on 2020-06-11 · Last edited by Vale.buyondo on 2026-01-10.
BlobToBase64 converts a Blob / Binary attribute into a Base64-encoded string.
Examples
Customer.allInstances()->first().ProfilePicture.BlobToBase64
ResultReturns a single Base64 string
Explanation
first()selects one concrete instanceBlobToBase64operates on one Blob attribute
Customer.allInstances()->collect(x | x.ProfilePicture.BlobToBase64)
ResultReturns a collection of Base64 strings
Explanation
collect explicitly iterates over the collection
Each ProfilePicture Blob is converted individually
The result is a new collection of strings
