Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Convert image to binary bit

images php coding issues or problems here.

Moderators: macek, egami, gesf

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?
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 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!
User avatar
aravindoptimus
New php-forum User
New php-forum User
 
Posts: 11
Joined: Thu Mar 07, 2013 2:00 am


Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron