Saving and displaying images using JPA

Saving and displaying images is an essential part of many Web applications. A typical use case is to store profile pictures.