mysql blob with mvc and nhibernate
I am trying to pull a blob from a mysql table and displ开发者_StackOverfloway it on an mvc view page. When I try to access it, it is just coming up as System.byte[]. I tried adding tostring(), but get the same results. I also tried BitConverter.ToString, but then I get what appears to be a hex string (43-6F-6E-66.....).
How do I get plain text from that?
thanks
I was able to get this working by using Encoding.ASCII.GetString(myBlobField)
Thanks
精彩评论