Convert image to binary bit

images php coding issues or problems here.

Moderators: macek, egami, gesf

ukasyah
New php-forum User
New php-forum User
Posts: 2
Joined: Tue Oct 23, 2012 8:41 am

Convert image to binary bit

Postby ukasyah » Tue Oct 23, 2012 8:54 am

I am newbie, i learn GD library, pliz help me to convert image black and white to binary bit 0 and 1, thanks

ukasyah
New php-forum User
New php-forum User
Posts: 2
Joined: Tue Oct 23, 2012 8:41 am

Re: Convert image to binary bit

Postby ukasyah » Sun Oct 28, 2012 1:05 am

no one answer?no body help?

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

Postby 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!


Return to “PHP coding => Images”

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron