At first, who is event.data
?
What data type? What kind of variable? Where is it defined? Is it an array of bytes? is it a var
?
What you do is probably better doable with PHP like this:
<?php
$incomingMessage = // populate with the actual data from your source.
echo '<img src="'.incomingMessage'">';
?>
As for Javascript, I have no idea what to tell you because you did not provide any info about the source of the data, the variable that stores it, etc.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…