Class PetPhotoSerializer

All Implemented Interfaces:
Function<Object,byte[]>, ThrowingFunction<Object,byte[]>

Serializes BufferedImage pet photos to image/png/image/jpeg byte streams.

Petstore-local port of the deleted juneau-examples-rest image demo, relocated here (rather than juneau-examples-core) so juneau-petstore-core stays free of any dependency on the examples modules. Wired into PetStoreResource.getPetPhoto(long).

See Also: