I’m working on a project that has two different parts. It’s an e-voting system, so there’s the part where voters vote, and there’s the part where the admin can make changes like adding a new position, candidate, etc. I put these two parts in two different project folders called the client and the server. Each candidate has the URL of their picture, which is also stored on the server machine, which should be displayed to the client depending on which candidate is selected. The problem I’m having is how to read the picture from the server into the client application. Any tips on the best location to store the files such that I can pass just the server name as a parameter to the client and it’s able to retrieve the file.
The application uses MySQL, and I’m so far assuming that the database server is the same as the application server.
Also, I was wondering of the possibility of storing the file in the database itself, and if so, how practical that would be in terms of speed.
Thanks.
Single point of information is helpful – so put the picts in the database, if possible. If you do it right, there is not more performance penalty than with other client-server-communication. If the client keeps running you can cache the pictures.
I haven’t understood the two folder thing. The server folder must be synchronized to the client? Why? Why don’t you store thinks like a new position in the database also?