Does anyone know how to save an image into my SQLite db with Doctrine2? I already got a BLOB “pic_data” and a string “pic_type”, but how do i hava to go on?
Greetings,
BigTeddy
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you really need to store the image in the DB? Can’t you store it in the file system.
See Storing Images in DB – Yea or Nay? for discussion about this.
You can just append the system timestamp (see php time() function) to the filename to make it unique.