io.pedestal.service.data

added in 0.8.0

Utilities for converting to and from specific data types.

convert

(convert format binary-data)

Converts binary data in a supported format (byte array, ByteBuffer, InputStream) to another format (:byte-array, :byte-buffer, or :input-stream). Converting nil results in an empty array/buffer/stream.

ToByteArray

protocol

members

->byte-array

(->byte-array value)

ToByteBuffer

protocol

members

->byte-buffer

(->byte-buffer value)

ToInputStream

protocol

members

->input-stream

(->input-stream value)