Convert image to binary bit

images php coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
aravindoptimus
New php-forum User
New php-forum User
Posts: 11
Joined: Thu Mar 07, 2013 2:00 am
Contact:

Re: Convert image to binary bit

Post by aravindoptimus » Thu Mar 07, 2013 4:18 am

Here is the code:
<?php
$file="123.jpg";
$con=file_get_contents($file);
echo $en=base64_encode($con);
?>

Click view Source and see the Binary data!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests