fix sql server blob convertion