gandhirajan commented on issue #11387:
URL: https://github.com/apache/arrow/issues/11387#issuecomment-942598713
Hi @eerhardt , Thanks a lot for the response. If I get a working sample,
will contribute for sure.
@Ulimo , the sample code below is what we tried and couldn't get it working:
String encoded =
System.Convert.ToBase64String(System.Text.Encoding.GetEncoding(“ISO - 8859 -
1”).GetBytes(“user_name” + “: ”+“password”));
var credentials = CallCredentials.FromInterceptor((context, metadata) => {
metadata.Add(“Authorization”, "Basic " + encoded);
return Task.CompletedTask;
});
GrpcChannel channel = GrpcChannel.ForAddress(“dremio_url”, new
GrpcChannelOptions {
Credentials = ChannelCredentials.Create(new SslCredentials(), credentials)
});
FlightClient client = new FlightClient(channel);
client.ListActions();
while (await actions.ResponseStream.MoveNext(
default)) {
Console.WriteLine(actions.ResponseStream.Current);
}
Any help to resolve the issue in this code sample is greatly appreciated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]