I need to implement OTA, Not able to download file from azure blob #1366
ijaznoufal
started this conversation in
General
Replies: 2 comments
-
Maybe the pe file is too big |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can use WebRequest to subcontract and download the upgrade package |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
_httpClient.DefaultRequestHeaders.Add("x-ms-blob-type", "BlockBlob");
HttpResponseMessage response = _httpClient.Get("https://xdatas.blob.core.windows.net/ota/test.pe");
response.EnsureSuccessStatusCode();
var responseBody = response.Content.ReadAsString();
for _httpClient.HttpsAuthentCert = new X509Certificate()// iam using same from https://github.com/BWalti/nf-ssl/blob/main/nf-ssl/Resources/AzureRootCerts.pem
but this is the error iam getting
Issue : An unhandled exception of type 'System.Net.Http.HttpRequestException' occurred in System.Net.Http.dll
Beta Was this translation helpful? Give feedback.
All reactions