I have looked back at past submissions to this forum regarding ob_start and it appears to be a common problem. If you want to read an image from file to a variable and stop it from displaying in the browser, you're out of luck.
I have tried reading the image directly into a variable and I have tried using ob_get_contents(), but nothing seems to work.
I don't know whether this is a bug or an intended limitation. Perhaps I'm missing something obvious or there is another way of doing this.
After many hours of trying this, I'm very frustrated.
Any help?....... PLEASE!