Replies: 4 comments
|
may i know the windows image you are using? i will find a time to check you code |
0 replies
|
@tg123 I'm using an image based on msmq-wcf-ltsc2022 (https://hub.docker.com/r/microsoft/dotnet-framework-wcf) My web application is running on a Microsoft Windows Server 2022 Datacenter. I hope that is the information you need. |
0 replies
|
Hi @makten running image code based on https://github.com/kubernetes-client/csharp/blob/master/examples/cp/Cp.cs |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to copy a file over to a Windows container following cp example in the examples folder. The following is my code:
`public static async Task CopyFileToPodAsync2(IKubernetes client, string name, string nsp, string container, string sourceFilePath, string destinationFilePath, CancellationToken cancellationToken = default)
{
ValidatePathParameters(sourceFilePath, destinationFilePath);
var handler = new ExecAsyncCallback(async (stdIn, stdOut, stdError) =>
{
var fileInfo = new FileInfo(destinationFilePath);
try
{
using var memoryStream = new MemoryStream();
using var inputFileStream = File.OpenRead(sourceFilePath);
using var tarOutputStream = new TarOutputStream(memoryStream, Encoding.Default)
{
IsStreamOwner = false
};
The destination folder is
C:\Testwhich exists on the machine. Even when I create a new Folder addingmkdir C:\Test2to the command, I do not get an error but nothing happens.Could someone point out what I'm doing wrong?
All reactions