Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>How are you invoking this file? If you are calling it inside of an <code>&lt;img&gt;</code> tag, or from a CSS directive, then do as C. Walsh says and check for whitespace in the file (tip: for binary data, don't include a closing <code>?&gt;</code> tag in your script) as well as a <a href="http://en.wikipedia.org/wiki/Byte_order_mark" rel="nofollow noreferrer">Byte Order Mark</a> at the beginning of your file (use a HEX editor like <a href="http://www.pspad.com/" rel="nofollow noreferrer">PSPad</a> for this).</p> <p>You may also want to consider, since errors may occur during your image script's execution, wrapping the script contents in <a href="http://php.net/manual/en/function.ob-end-clean.php" rel="nofollow noreferrer"><code>ob_start()</code></a> and <a href="http://php.net/manual/en/function.ob-start.php" rel="nofollow noreferrer"><code>ob_end_clean()</code></a>, where <a href="http://php.net/manual/en/function.ob-start.php" rel="nofollow noreferrer"><code>ob_end_clean()</code></a> is called just before the headers are sent and the image is generated.</p> <p>If you are invoking it directly from the file in which you wish to embed the image, then use the following HTML scheme:</p> <pre><code>&lt;img src="data:image/png;base64,DATADATADATA" alt ="" /&gt; </code></pre> <p>Where DATADATADATA is the base64 encoded version of your image.</p> <p>See: </p> <ol> <li><a href="http://en.wikipedia.org/wiki/Data_URI_scheme" rel="nofollow noreferrer">Data URI Scheme</a></li> <li><a href="http://php.net/manual/en/function.base64-encode.php" rel="nofollow noreferrer">PHP Manual Entry for <code>base64_encode()</code></a></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload