Inter-application data exchange: the best solution?

Hello everyone,
I have a web application that retrieves photos sent by users via a web page, and another application that can read the photos sent.
What I want to do is save the session number, photo name, time sent, etc. in a file that can be read by the other application.
What is the best solution?
Thanks to you…

Steph.

Not sure this is the best solution but a fairly easy one.

Create a JSON file stored next to each image with the same filename just a different extension.
You can store whatever you want in the JSON file.

When you read the image file, read the JSON file at the same time.

1 Like

Save the information in a database. That makes it available to both applications. Quick question, though, what use is the session number to the second application?

Okay, but if I close the application, will the database still be kept?
I need the session IDs, because there will be several users, and I want each user to be able to see the photos they’ve sent personally.
Thanks for your help.

The database is a file on disk, so yes it will persist between connections. You get a new session ID each time you connect, so session (assuming you mean the Session.Identifier) won’t allow them to see previous photos. You need a user ID of some kind.

Thanks for your answer.
In fact, I will store Identifier of websession