image-field

How to make a Django ImageField save the image to another model?

I have a member profiles application that stores simple information about members of a team. Part of the profile is an image to be used as an avatar. I've been using Photologue to create standard galleries of photos, but it has an ImageModel that can be extended to take advantage of Photologue's resizing and caching functionality. The...

Save file from Database image field

Hi, I have uploaded a text file to my database into a Image field. The problem is when I try to retrieve the file (make the user able to download it on a click on a link). When I try to download it, it is simply filled with the content of the webpage (all the html is filled into the text file). I am considering it to be an error with the...

Read file from database

Hi, I am trying to download a file I have uploaded to an image field in my MS-SQL database. The problem is that when I try to open the file it just says System.Byte[] instead of containing the actual content. UploadFiles is my class which contains the filename, id, filedata etc. public void DownloadUploadedFile(Page sender, UploadFiles...

drupal cck image_field and imagecache

I am having trouble getting imagecache to generate a thumbnail based on a preset I have created named 'thumbnail'. I have an cck image_field and a custom node view. The code I am using to output my images is: <?php foreach($node->field_comm_gallery as $galleryItem) { ?> <?php print theme('imagecache', 'thumbnail', $galleryItem['file...

How to improve performance in SQL Server table with image fields?

I'm having a very particular performance problem at work! In the system we're using there's a table that holds information about the current workflow process. One of the fields holds a spreadsheet that contains metadata about the process (don't ask me why!! and NO I CAN'T CHANGE IT!!) The problem is that this spreadsheet is stored in a...