I have a web service that is connects to a mySQL database, pulls a large text field and returns it to the client.
Example:
...
However, when the client receives this, it is receiving "System.Byte[]" instead of the actual string. Why is this? How can I convert this properly. It seems to work fine internally when I populate Lucene.net with the strings (i.e. it's receiving the correct string).
THANKS!!!
Example:
Code:
string sql = "SELECT Essay FROM essay WHERE ((EssayID)='1234');";
MySQLCommand cmd = new MySQLCommand(sql, conn);
MySQLDataReader reader = cmd.ExecuteReaderEx();
if(reader.Read()){
string essay = reader["Essay"].ToString();
return essay;
}
However, when the client receives this, it is receiving "System.Byte[]" instead of the actual string. Why is this? How can I convert this properly. It seems to work fine internally when I populate Lucene.net with the strings (i.e. it's receiving the correct string).
THANKS!!!