Replies: 4 comments
-
may i know the windows image you are using? i will find a time to check you code |
Beta Was this translation helpful? Give feedback.
-
@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. |
Beta Was this translation helpful? Give feedback.
-
@tg123 have you had time to check my issue? |
Beta Was this translation helpful? Give feedback.
-
Hi @makten running image code based on https://github.com/kubernetes-client/csharp/blob/master/examples/cp/Cp.cs
|
Beta Was this translation helpful? Give feedback.
-
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:\Test
which exists on the machine. Even when I create a new Folder addingmkdir C:\Test2
to the command, I do not get an error but nothing happens.Could someone point out what I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions