I'm working with BLOB image in PHP. My images has no absulut url ( like this : www.example.com/my_image) . I need it because i'm woking with facebook open graph image sharing. How can i fix that?
Asked
Active
Viewed 616 times
2
-
How do you show your image? – Ali Farhoudi Mar 25 '16 at 20:48
-
Possible duplicate of [How to retrieve images from MySQL database and display in an html tag](http://stackoverflow.com/questions/7793009/how-to-retrieve-images-from-mysql-database-and-display-in-an-html-tag) – user1431317 Mar 25 '16 at 20:49
-
i'm showing my image like this
– M.Sadok Mar 25 '16 at 21:05
-
1What you're trying to do won't work. Write a separate PHP program (call it maybe "loadimagefromdb.php") that emits the decoded image (based on an ID given in the query string, perhaps, which this program searches the db for) with a header of `Content-Type: image/jpeg`. Then in your `
` tag in the other file, you put that URL, e.g. `
`. – Keith Tyler Mar 25 '16 at 21:30