It's not as simple as a cast. You will get a byte[] from the database, and
you can create a new MemoryStream and then pull data from that MemoryStream,
using tools such as the BinaryFormatter to serialize and deserialize from
that stream.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
"martin" <ma***************@hotmail.com> wrote in message
news:Og**************@TK2MSFTNGP12.phx.gbl...
Hi,
I have blob field in my database.
I am retrieveing the field through a stored procedure and the execute
scalar
method.
I would like to cast resulting "byte" field to a string.
I am using the syntax