Jump to content

download blob image to web page


Go to solution Solved by Q695,

Recommended Posts

 I have the attached files to upload an image to mysql. The image appears on the page and is entered into the data base. However when I Return to the page the image is missing. So I included the get_league_1 .php and nothing happens EXCEPT I get an error message saying The image “http://127.0.0.1/tables/League_1/example.php” cannot be displayed because it contains errors.

 

league_1.php

get_league_1.php.

 

How exactly do I display the last image on a website?

Link to comment
https://forums.phpfreaks.com/topic/278980-download-blob-image-to-web-page/
Share on other sites

to display an image on a web page you must use an <img > tag, like your league_1.php file is doing on line 49.

 

you cannot just include the get_league_1.php file on a web page since the http request for the image must output the image content-type header (so that the browser knows what to do with the content) followed by the image data. the http request for the image must be a completely separate request.

to display an image on a web page you must use an <img > tag, like your league_1.php file is doing on line 49.

 

you cannot just include the get_league_1.php file on a web page since the http request for the image must output the image content-type header (so that the browser knows what to do with the content) followed by the image data. the http request for the image must be a completely separate request.

Thanks for your advice. I tried to understand and did the attached file but still returns The image “http://127.0.0.1/tables/League_1/example.php” cannot be displayed because it contains errors. Further advice would be really appreciated.example.php

As I am still unable to see an image is anyone able to write the code that will put image onto webpage for a small fee?

 

most of the people reading this charge in the neighborhood of $100 US per hour, minimum of one hour. are you sure you wouldn't like to attempt to learn and solve this yourself? the Php Coding Help forum is for programmers to get help with their code. if you want someone to write this code for you, post your request in the Freelancing forum section.

 

all you did to the code was to copy/paste the contents of the file you were previously including, at the point where you were including that file. that's not what someone suggested and in fact you were pointed to an example in your own code that shows how to dynamically display an image.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.