Replace the jpg
with the type of image, and [your byte array]
with your byte array
. You need to convert it to base64
if it isn’t already.
<img id="profileImage" src="data:image/jpg;base64, [your byte array]">
More Related Contents:
- calling java method in javascript [closed]
- Dynamic Drop down values based on another dropdown [closed]
- Example images for code and mark-up Q&As [closed]
- How to retrieve and display images from a database in a JSP page?
- Simple calculator with JSP/Servlet and Ajax
- How to escape apostrophe or quotes on a JSP (used by JavaScript)
- Reading a JSP variable from JavaScript
- How to detect the timezone of a client?
- Converting a Java ArrayList of strings to a JavaScript array
- How do I pass JavaScript values to Scriptlet in JSP?
- How can I escape special HTML characters in JSP?
- JSP – What is wrong with scriptlets, and what to use instead [duplicate]
- Loading images from jars for Swing HTML
- How to upload files on server folder using jsp [duplicate]
- sending variable from one jsp to another jsp
- How to convert HTML to PDF using iText [duplicate]
- How to use HTML and CSS as a Java application GUI?
- Assign JavaScript variable to Java Variable in JSP
- Help getting image from Servlet to JSP page [duplicate]
- Using for loop inside of a JSP
- How to URL encode a URL in JSP / JSTL?
- Avoid duplicate submission of Struts 2 jsp page
- Getting Jsoup to support dynamically generated html by JavaScript
- How do you import classes in JSP?
- Capturing image from webcam in java?
- Detecting WebP support
- Getting java gui to open a webpage in web browser
- How to load Image file to ImageView?
- JSTL/JSP EL (Expression Language) in a non JSP (standalone) context
- Servlet redirect to same page with error message