Save image to blob

0

How can I save this image code in the blob?

data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcKCggLDSkODQwMDRsUFR...

I took only one piece of it because it all would not fit here.

just send the code to the blob field in the database? or do you need to do some preparation before?

    
asked by anonymous 12.02.2015 / 20:55

1 answer

0

I was able to solve the problem, I just needed to give mysql_real_escape_string in the image code and send it directly to the mysql database in the blob field

    
13.02.2015 / 13:35