You need to add some javascript to your code.
// HTML
<a target="_blank" href="#" onClick='test(this)'>
<img alt="" src="<%#"data:Image/png;base64,"+ Convert.ToBase64String((byte[])Eval("ImageData")) %>"" />
</a>
// Javascript Code
function test(element) {
var newTab = window.open();
setTimeout(function() {
newTab.document.body.innerHTML = element.innerHTML;
}, 500);
return false;
}