How to insert an image in mysql database without uploading image(uploading-using html tag type=file).The images are stored in a folder in sequence. I am using html,javascript and php.
please post answer if you know.
How to insert an image in mysql database without uploading image(uploading-using html tag type=file).The images are stored in a folder in sequence. I am using html,javascript and php.
please post answer if you know.
you might want to then just make a reference in the db a file path for example. if you have solved how to upload then just add that in. remember, you might also want to add some form of numbering to the file so you are certain the file will be correct. that way the file system wont be destroyed the first time some one uploads a image that is the same as the last one
You cannot save any image to a DB if you do not send information about that file...
If you are in a Web Browser, you could ask for the BASE64 of the image, and save that string to your DB.
Here is a question that will help you understand what I am trying to explain you.
You ask the user to enter the BASE64 that can be get from any online webpage that does this. This page does what I mean.
I hope this answered your question !