Good day!
Im developing a client server application that send dataset from the server going to client. I have successfully send my dataset from the server after converting it to xml string. My client had also successfully recieve my xml data from the server. I had also successfully load my xml data to the client dataset. Now the problem is when i try to use the column whith BLOB datatype(originaly from the server) i stuck on with this error. Unable to cast object of type 'System.String' to type 'System.Byte[]'. the line that producess this error is as follows:
byte[] tempByte;
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
tempByte = (byte[])ds.Tables[0].Rows[i]["BLOBCol"]; //erro is in this line
//some code here
}
this Code is perfecly running on the server. This problem is on the client side. I do not know if the structure of my dataset had been affected when i converted it to xml and back to dataset.
Please help me.....
Thanks in advance.