1

I'm using SF1.4 and Propel and I'm having a slight problem with trying to save images to a field in my database.

Does anyone have a small example that I could work from?

2 Answers 2

5

Keep your images in a filesystem. Is there a special reason to store images in a db ? You can store only generated filename. Because storing blobs in mysql will freeze your application. Give this task to a webserver.

Sign up to request clarification or add additional context in comments.

2 Comments

Yes. Symfony provides functionality for this as well.
There is no special reason as such, I'd like to store them in the database rather than the filesystem
1

I've had a bad experience saving images as blobs. Specially when you have to change your database engine. But if you still want to go that way. I found this useful http://oldforum.symfony-project.org/index.php/t/25699/ though its based on Doctrine.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.