InMotion Hosting Support Center

How do I upload a photo to mysql table.

Category: Databases

2013-03-14 9:40 am EST

Hits: 497
I want to be able to upload and store photos in a database so I can call them will php.
Further they are .png images with transparency.
Thanks for any help.

You must login before you can ask a follow up question.

You must login before you can submit an answer.



5,889 Points
2013-03-14 9:48 am EST
Thank you for your question Mam1606!

In order to upload images to a database you will need to make a field in your database to store blob data. Please see the following link on this.

Once you have the database set up to store blob data you will be able to insert them with PHP and call them with PHP.

Best Regards,
James R

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!