Forum OpenACS Q&A: Image loading issue

Collapse
Posted by chris cunningham on
I'm having trouble getting images to show up for a user's portrait. I'm able to save fine and they appear to be storing in the blob field of the db just fine, but when I try to load the page that displays the portrait, I keep getting the following error in my log file...

[10/Dec/2006:15:10:55][29703.8440720][-conn:1-] Notice: SQL():
select portrait_file_type
from general_portraits
where portrait_id = :portrait_id
[10/Dec/2006:15:10:55][29703.8440720][-conn:1-] Notice: bind variable 'portrait_id' = '3'
[10/Dec/2006:15:10:55][29703.8440720][-conn:1-] Error: no encoding for type "image/gif"
while executing
"ns_startcontent -type $content_type"
(procedure "ReturnHeaders" line 6)
invoked from within
"ReturnHeaders $file_type"
(file "/web/fc6pn/www/shared/portrait-bits.tcl" line 45)
invoked from within
"source [ad_conn file]"
(procedure "rp_handle_tcl_request" line 2)
invoked from within
"rp_handle_tcl_request"
invoked from within
"catch $handler error"
invoked from within
"rp_abstract_url_server"

I have this set in my nsd.tcl config file:

ns_section "ns/server/fc6pn/MimeTypes"
ns_param Default "text/plain"
ns_param NoExtension "text/plain"
ns_param .pcd "image/x-photo-cd"
ns_param .prc "application/x-pilot"
ns_param .jpg "image/jpeg"
ns_param .jpeg "image/jpeg"
ns_param .gif "image/gif"

I've been doing searches all day trying to find answers to this, but haven't found anything yet. Any ideas on why this is happening?