I’d like to use the GD Library with actual images – BLOBs from a mysql database.
Can it be done? If so, how?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, using
imagecreatefromstring().It accepts an image as string data, auto-detects its type (as long as it’s supported of course) and creates a GD resource based on it.