Im using signaturepad from Nuget, everything is fine with the exception of trying to recreate signatures from the byte array stored on the server.
My Model has
public byte[] MySignature { get; set; }
and in my index view I have this to try and display the signature, but all I ever get is invalid urls
<td>
@{
if (item.MySignature != null)
{
<img src="@string.Format("data:image/jpeg;base64,{0}", Convert.ToBase64String(item.MySignature));" />
}
}
</td>
Am I missing something plainly obvious?