I creating a small program which basically reads Electronic identity cards and stores the information in a SQL database.
There is more to the program of course, but this is where i need help with.
The EID has a picture from the person also.
I decided not to save the image directly into the SQL database, but store it in the application directory.
However i cannot seem to figure out how i can save it with a filename taken from one or more textboxes.
This is what i am using right now, but as you can see it saves it as Test.Jpeg
Dim file_name As String = Application.ExecutablePath
file_name = file_name.Substring(0, _
file_name.LastIndexOf("\bin")) & "\test."
Dim bm As Bitmap = EidPic.Image
bm.Save(file_name & "jpg", _
System.Drawing.Imaging.ImageFormat.Jpeg)
I am thinking it would be the easiest if i stored the picture with a filename which is less common.
For example the ID card number or social security number, since these are always unique.
Any help would be appreciated.
Thanks