-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
SQL Server Management Studio 22.7 brings "What's New" page, T-SQL formatting, and lots more
By Usama Jawad96,
- 3 replies
- 0 views
-
- 4 replies
- 0 views
-
Chrome to support much smaller, faster images as JPEG XL makes a security-first comeback
By zikalify,
- 5 replies
- 0 views
-
Good news: JetBrains makes another IDE free for non-commercial use
By David Uzondu,
- 0 replies
- 0 views
-
AI's impact on programming language popularity revealed
By zikalify,
- ieee
- programming languages
- (and 7 more)
- 3 replies
- 0 views
-
Question
whitebread
I am building a web site for a friend of mine and want to store images in a MySQL database as a Base64 string. I have seen this done before (embedding images in a web page as a Base64 string). My question is: how can I write a PHP script which will allow me to upload an image and convert it to a Base 64 string? Would it be better to store it as a binary file in the database? My goal is to not have a bunch of image files sitting around in a directory because my web host doesn't allow me to have write access by PHP scripts (I only have write access by FTP), but I need a way to upload images.
Link to comment
https://www.neowin.net/forum/topic/1051181-php-storing-images-in-mysql-database-as-base64-string/Share on other sites
7 answers to this question
Recommended Posts