If the contents of ds.Tables[0].Rows["Photo"] is an array of bytes, then
all you need to do is cast to byte[]:
byte[] photo = (byte[])ds.Tables[0].Rows["Photo"];
If you're actually trying to convert an object to an array of bytes,
that involves a bit more work and depends on what type you are
converting from (Image or Stream or whatever)
Kimelia Schiles wrote:
Hi,
I would like to know how to convert the value with return type of object to
a byte array. For example:
byte[] photo = ds.Tables[0].Rows["Photo"];
Thanks and have a nice day
--
David Hogue