Hi, I''m retrieving images from a Sqlite3 database. I''m processing them using RMagick and returning them to the user. I''m using FastCGI and lighttpd as production, and webrick as development (and I see the problem in both environments). This works about 80% of the time. The other twenty percent (using Firefox), I get a message like this: The image "http://thejerrymahangroup.com/image/curved_thumbnail/85.jpg" cannot be displayed, because it contains errors. Then if I shift-alt-reload the page, the image generally comes through. Any ideas on what this could be? Thanks, Joe
Here''s the Image Controller class, if someone wants to look that over: http://rafb.net/paste/results/gQFpDg58.html On Apr 12, 2005 4:35 AM, Joe Van Dyk <joevandyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m retrieving images from a Sqlite3 database. I''m processing them > using RMagick and returning them to the user. I''m using FastCGI and > lighttpd as production, and webrick as development (and I see the > problem in both environments). > > This works about 80% of the time. The other twenty percent (using > Firefox), I get a message like this: The image > "http://thejerrymahangroup.com/image/curved_thumbnail/85.jpg" cannot > be displayed, because it contains errors. > > Then if I shift-alt-reload the page, the image generally comes through. > > Any ideas on what this could be? > > Thanks, > Joe >
Oddly enough, the problems went away once I used #send_data instead of #response_text. No clue why. Any ideas? On Apr 12, 2005 4:45 AM, Joe Van Dyk <joevandyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Here''s the Image Controller class, if someone wants to look that over: > > http://rafb.net/paste/results/gQFpDg58.html > > On Apr 12, 2005 4:35 AM, Joe Van Dyk <joevandyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > > > > I''m retrieving images from a Sqlite3 database. I''m processing them > > using RMagick and returning them to the user. I''m using FastCGI and > > lighttpd as production, and webrick as development (and I see the > > problem in both environments). > > > > This works about 80% of the time. The other twenty percent (using > > Firefox), I get a message like this: The image > > "http://thejerrymahangroup.com/image/curved_thumbnail/85.jpg" cannot > > be displayed, because it contains errors. > > > > Then if I shift-alt-reload the page, the image generally comes through. > > > > Any ideas on what this could be? > > > > Thanks, > > Joe > > >
In article <c715e640504120435505e8489-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>, joevandyk- Re5JQEeQqe8AvxtiuMwx3w-XMD5yJDbdMReXY1tMh2IBg@public.gmane.org says...> This works about 80% of the time. The other twenty percent (using > Firefox), I get a message like this: The image > "http://thejerrymahangroup.com/image/curved_thumbnail/85.jpg" cannot > be displayed, because it contains errorWhen that happens, you''ll usually find that if you "View Source" on the image, you''ll be able to see a text error message in place of/in addition to the image data, and that should give you some clues. -- Jay Levitt | Wellesley, MA | I feel calm. I feel ready. I can only Faster: jay at jay dot fm | conclude that''s because I don''t have a http://www.jay.fm | full grasp of the situation. - Mark Adler