Let's say I have a user registration form where I want to save a photo of it. I send this data by POST
to the server (Java) where I make the inclusion in the database.
What better way (practice) to send this photo along with the other data to my server? Save this image to a directory or to a BLOB
field in the database? Do I have to send the image as a Array
of bytes
? And how do I retrieve this image when I make an appointment at my bank?
If possible I would like some examples or explanations.