How can I upload an image in the database? As it is now , in database
is saved only the path to it.
The image itself is in the file system.
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group
Yes, I need to store them in database. I need to do this from the
django admin.
Do I have to make a custom field in the model? Or additional field in
the database which is blob type?
How can I override the save method , so that the image to be uploaded
in the database, not in the file system?
On
I've been kinda wanting the same thing. I think you could implement a
DbImageField and a database file storage back end. Keep us in touch,
I'm interested.
Erik
On 08.09.2008, at 12:08, nsash wrote:
>
> How can I upload an image in the database? As it is now , in database
> is saved only t
Is there a pressing need to do this?
I think the design decision here was that serving image files to users is
something that web-servers will be able to do with much less overhead.
If you need to perform image manipulation on the fly, maybe have a look at
sorl.thumbnail (http://code.google.com/p/
Since you're asking about the need, let me bring you an example:
(images and documents are both just files so we can discuss storing
files in the database not just images)
I have a bunch of documents that my customer can upload through the
admin interface. He can then assign read permissions
I see what you mean and I have wondered myself how to solve this problem.
I thought there were two aspects to it: one is that there is nothing to stop
someone who has legitimate access to view an image on the web, just to
right-click and save the image (unless you do some javascript trickery,
whic
6 matches
Mail list logo