Uploading a png photo to mysql and maintaining transparency
Category: Databases
James sent me to some excellent code to upload photos. However, I also want to maintain the transparency of my png images upon upload.
Is this possible with Inmotion? If so, how would I do it.
Is this possible with Inmotion? If so, how would I do it.
OTHER ANSWERS
|
0
|
Thank you for your question Mam1606! MySQL will store you image as a BLOB (Binary Large Object). When you upload the image to your database, the file format is retained in the Binary data. When the image is called using PHP, the image should load with the exact same file format, retaining the transparency. This should work on any LAMP (Linux, Apache, MySQL, PHP) server. All InMotion servers are LAMP servers so you should be ok to use .png's with transparencies in your BLOB data of your database at InMotion. Best Regards, James R |
Like this Question?
Tweet
Latest Questions
If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Recent QuestionsNeed more Help?
Search
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: | support@InMotionHosting.com |
|---|---|---|---|
| Call: | 888-321-HOST (4678) | Ticket: | Submit a Support Ticket |


