So, i am getting the byte array of a LongRaw image from Oracle... I am using a webapi to this. After get the array, how i use it on the Client-side ? Do Its better i convert to base64string and pass this value converting just at the client side ?
cmd.InitialLONGFetchSize = -1;
                var reader = cmd.ExecuteReader();
                if (reader.Read())
                {
                    // Fetch the LONG RAW
                    OracleBinary imgBinary = reader.GetOracleBinary(0);
                    // Get the bytes from the binary obj
                    byte[] imgBytes = imgBinary.IsNull ? null : imgBinary.Value;
                    //var imgString = Uri.EscapeDataString(Convert.ToBase64String(imgBytes));
                }
                //CRIO A LISTA
                lretorno.Load(reader, LoadOption.OverwriteChanges, "BUSCAFOTO");
                reader.Close();
                connection.Close();
                connection.Dispose();
                var teste = lretorno.Tables[0].AsEnumerable().Select(row => new FotoEnvolvido
                {
                    FOTO = (byte[])(row["FOTO"]),
                    //FOTO = Convert.ToString(row["FOTO"]),
                });
                return teste;
 
     
     
    