Reputation: 6199
I need to transfer byte array from my java app to a c# app. One option is just store it into a file but its not so secure. I was thinking maybe there is a way to use a memorystream or something so the data wont be stored anywhere else than memory.
EDIT: Just to give more information. Applications run on the same machine and C# applications is executing the java application.
Upvotes: 3
Views: 2659
Reputation: 28069
If you are only transferring a byte array between programs on the same computer, using a socket could be easiest to implement.
The down side is you will need to ensure the listening server socket doesn't accept connections from any other hosts (bind to localhost only).
The most secure way to do this is via shared memory.
Upvotes: 1
Reputation: 32014
WebService can be a choice for communication between heterogeneous platforms.
Upvotes: 0
Reputation: 27811
You can expose methods in a way that will allow the two application to speak to each other. Here is a similar question with numerous answers.
Upvotes: 1