Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8150045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:58:22+00:00 2026-06-06T14:58:22+00:00

I got images in a php includes file. <img class=imgmove src=’data:image/png;base64,<?php echo base64_encode(file_get_contents(images/form/firstname.png)); ?>’>

  • 0

I got images in a php includes file.

<img class="imgmove" src='data:image/png;base64,<?php echo base64_encode(file_get_contents("images/form/firstname.png")); ?>'>

code works flawless. I was testing the design and I dragged an image in to an input bar and it spit back the following:

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEkAAAAaCAYAAAGMbkETAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77uUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2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3Fr2y8qJNz2p+JlsxgWQ6kaXnAULYRTabuDLGuBWqNocLfwIeaPHXpw7WoToTmdKTftK8/XAvqSXeNMkj5aVSUZpLHVjsljVt8ShBs9WCsQE0otD+yQCR7XW6ZPzQwo2aXfxykiO9nHXMUZVoqlSJSbEl4AqLSmWXNk+3KZM+LFEVSIQNVaYa0uc0TFv5Dy4WkeqRzRdOTLQjIBu7KMRH5A1gQsWa+2upwDVWIFtg0AMRFUHSDYgG8AEDRs0E5ANWiYITEA6QbIB2QA2yAhJN8gG1H7dV671fAsihFpCgfzreR/JMqxsUgqN+zBf7+H6n3vejImks2yBq1hCoC6RjgRRsAWQOYCoQeNbrwHl06TiAk0a1v/g/C5DQLKjxlWMpoiBPG/ovka0WFH6Gf2jsKMZyIdZWaq0LiN6sJ97rNNsBfp5Z+nC6XGjzGTmx97WHoI04tQ40v+lQpyVSMoCkDjvWKwiQ/J7qdkwr4HxFTqXkeOzoItdwdknjN0TDmX45am5iqpH26K01ACzr0Gg7Utg7LQ8IuGSOIHHJwMXWEo63CqASJM3ORvRswbAyIlalyRFik0G6cnRijX8dSRYojogVHHoHQFvc73Uq0tgG0ceAfKoa7RXAxp5XuiLJNMa4yp1dY3SO9gXCSHqDPCaZOAAAAABJRU5ErkJggg==

What is all of that code? can someone tell me? Thanks — and should I be securing my php file so that it doesn’t show this code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:58:24+00:00Added an answer on June 6, 2026 at 2:58 pm

    This is the base64 data uri for the image you dragged in . There is not an issue with you php file from what I understand.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in html i got this: <div id=userPhoto> <a href=profil.php?id=<?php echo $sid; ?>> <img src=images/profilePhoto/thumbs/<?php
So say I've got a series of images created with a php loop ->
I got a PNG having multiple images encoded in it. How do I make
I have got following folder structure for my domain (domain.com): /data/images (it´s subdomain name,
I've got HTML form for editing images. All data is stored in JSON. When
guys!I got a littile trouble. There is connection.inc.php in includes folder: <?php function dbConnect($usertype,
I've got the following PHP code: $file = 'http://api.themoviedb.org/2.1/Movie.getInfo/en/xml/937a7e45f8f9e50cdb80e21fa50abc39/6479'; if(!$xml = simplexml_load_file($file)) { exit('Failed
I got a problem about including a included file in PHP. Project functions(folder) has
I needed to display number of images in <li><img class='1'><img class='1'><img class='1'></li> <li><img class='1'><img
I'm receiving files (images) uploaded with Ajax into my PHP script and have got

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.