so i have this method:
string sql = string.Format("EXECUTE getPlayerImage @playerID = '{0}'", bio.playerID);
SqlCommand cm = baseballConnection.CreateCommand();
baseballConnection.Open();
cm.CommandText = sql;
baseballConnection.Close();
return cm.ExecuteScalar() as byte[];
and it works, at least i get no errors. but now all i have is a byte array, how can i display this on the screen? i have an image tool on the screen but the only way i know how to display an image is if its saved on the server and has a file path. i wouldnt know how to save the byte array to the server, but that would be cheesing it and there would be no point to my already saving the image in the db as a varbinary and now retrieving it.
how can i get this byte array to display?