Creating an image file from base64 text

images php coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
kiash001
New php-forum User
New php-forum User
Posts: 16
Joined: Wed Feb 27, 2013 2:49 am
Location: Dhaka, Bangladesh
Contact:

Re: Creating an image file from base64 text

Post by kiash001 » Tue Mar 05, 2013 9:08 am

I think the problem is

Code: Select all

data:image/jpeg;base64,
Solution is

Code: Select all

base64_decode(str_replace("data:image/jpeg;base64,", '', $data));

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests