Pass binary file or byte[] from c# to java

半城伤御伤魂 提交于 2020-01-06 15:14:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!