问题
I have a .net application in c# which receives a byte array and I need to send it to a Java Program as an argument, which is the best way to do it?
NOTE: Its all in the same server.
回答1:
Start a Process and redirect the input stream
回答2:
Send it over the Looback address (127.0.0.1
) via sockets (C# & Java). If it's just a simple byte[]
, then this will be VERY simple on both ends.
With this, both the C# and Java applications can continue their process without interuption.
来源:https://stackoverflow.com/questions/21101379/pass-binary-file-or-byte-from-c-sharp-to-java