HTML code scrip for Base64 to Image

Created on 3 July, 2024 • 102 views

HTML code scrip for Base64 to Image

<!DOCTYPE html>

<html>

<head>

 <title>Display Base64 Image</title>

</head>

<body>

 <h1>Displaying Base64 Image</h1>

 <p>Paste your Base64 encoded image data here:</p>

 <textarea id="base64Data" rows="10" cols="50"></textarea>

 <br>

 <button onclick="displayImage()">Display Image</button>

 <br>

 <img id="decodedImage" src="" alt="Decoded Image">

</body>

<script>

 // Script to decode and display image goes here

</script>

</html>