Reputation: 3672
In a Windows command prompt you can use the following technique to send stdin to somecommand
:
echo Hello, World! | somecommand
However, what if your Hello, World!
input was actually a base 64 string that was around 10,000 characters?
I tried doing this with a test .exe but I kept getting the error "Input line is too long".
I know there is a way to do this by creating a temporary file and feeding that file to somecommand
, but I would like to know if it were possible without creating a temporary file.
Do I have any other options? Could I write some C# to open up a custom input stream? I have also tried going the new Process()
route in ASP.NET but encountered the same "Input line is too long" error.
Upvotes: 0
Views: 13