I am working on a project which retrieves jpeg image files and heave them displayed in the browser. These jpeg photos are stored as base64 in LDAP server. I am using JSP for this project. My questions are 1. How do I retrieve images from LDAP using jsp? I know how to retrieve any data of string type. 2. How do I decode them back into binary and display them? Any examples?