hs2d
hs2d

Reputation: 6199

Transfer data from java application to c#

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

Answers (3)

Gareth Davis
Gareth Davis

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

卢声远 Shengyuan Lu
卢声远 Shengyuan Lu

Reputation: 32014

WebService can be a choice for communication between heterogeneous platforms.

Upvotes: 0

Josh M.
Josh M.

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

Related Questions