Dave
2007-Sep-09 17:44 UTC
Images larger than 40k uploaded with attachment_fu won''t display
I have a problem displaying images when using attachment_fu. When I try to display the image, only about 40k appears in the browser, and with some images even that much is not visible (just garbage when I view source). I can display images smaller than 40k correctly. I''m storing the images in the database (mysql) and haven''t tried storing in the file system to see if that works or not. There is another thread about a bug in ActionPack that might be related, but I wondered if anyone else has run into this problem with attachment_fu? http://groups.google.ca/group/rubyonrails-talk/tree/browse_frm/thread/22d4c7cab7a0d181/a8cce55cd6a19b8e?rnum=1&q=truncating&_done=%2Fgroup%2Frubyonrails-talk%2Fbrowse_frm%2Fthread%2F22d4c7cab7a0d181%2Fa8cce55cd6a19b8e%3Flnk%3Dgst%26q%3Dtruncating%26rnum%3D1%26#doc_a8cce55cd6a19b8e Thanks! -Dave --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Rick Olson
2007-Sep-10 03:31 UTC
Re: Images larger than 40k uploaded with attachment_fu won''t display
On 9/9/07, Dave <dfdumaresq-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I have a problem displaying images when using attachment_fu. When I > try to display the image, only about 40k appears in the browser, and > with some images even that much is not visible (just garbage when I > view source). I can display images smaller than 40k correctly. > I''m storing the images in the database (mysql) and haven''t tried > storing in the file system to see if that works or not. > > There is another thread about a bug in ActionPack that might be > related, but I wondered if anyone else has run into this problem with > attachment_fu?Make sure your database can support that much data. Make sure it''s configured correctly and that the field is large enough to hold that much data. -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
KathysKode-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-10 11:47 UTC
Re: Images larger than 40k uploaded with attachment_fu won''t display
Rick, Since you showed up on this forum to answer an attachment_fu question would you be kind enough to answer this one? How does one view images when developing on a Windows XP box? In summary, whenever an image is uploaded to S3 using RMagick (and your attachment_fu) the file size = ZERO? This can be for any type of file from .png, .gif or .jpg. Thus, when retrieved into the application it is always a ghost image. If you''re kind enough to describe a strategy, I''ll do my best to spread the answer across the internet. Thank you, Kathleen KathysKode-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org On Sep 9, 10:31 pm, "Rick Olson" <technowee...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 9/9/07, Dave <dfdumar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I have a problem displaying images when using attachment_fu. When I > > try to display the image, only about 40k appears in the browser, and > > with some images even that much is not visible (just garbage when I > > view source). I can display images smaller than 40k correctly. > > I''m storing the images in the database (mysql) and haven''t tried > > storing in the file system to see if that works or not. > > > There is another thread about a bug in ActionPack that might be > > related, but I wondered if anyone else has run into this problem with > > attachment_fu? > > Make sure your database can support that much data. Make sure it''s > configured correctly and that the field is large enough to hold that > much data. > > -- > Rick Olsonhttp://lighthouseapp.comhttp://weblog.techno-weenie.nethttp://mephistoblog.com--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Rick Olson
2007-Sep-10 14:52 UTC
Re: Images larger than 40k uploaded with attachment_fu won''t display
On 9/10/07, KathysKode-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <KathysKode-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Rick, > Since you showed up on this forum to answer an attachment_fu question > would you be kind enough to answer this one? How does one view images > when developing on a Windows XP box? > In summary, whenever an image is uploaded to S3 using RMagick (and > your attachment_fu) the file size = ZERO? This can be for any type of > file from .png, .gif or .jpg. Thus, when retrieved into the > application it is always a ghost image. > If you''re kind enough to describe a strategy, I''ll do my best to > spread the answer across the internet. > Thank you, > Kathleen > KathysKode-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.orgI don''t use windows and I''ve never run into this issue, so I have no idea. Look for any error messages, or use ruby-debug to follow the plugin and see where it fails trying to save an attachment. -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Dave
2007-Sep-11 03:57 UTC
Re: Images larger than 40k uploaded with attachment_fu won''t display
I''m not sure what else to check other than the MySQL field definition: t.column :data, :binary, :limit => 10.megabyte I have successfully uploaded and displayed much larger images using the method described in AWDWR by Dave Thomas. The reason I''ve been trying to switch to attachment_fu is because I''d like the ability to display thumbnails. I would prefer to solve this than switch back. Any suggestions on how to debug this? Thanks, Dave On Sep 9, 8:31 pm, "Rick Olson" <technowee...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 9/9/07, Dave <dfdumar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I have a problem displaying images when using attachment_fu. When I > > try to display the image, only about 40k appears in the browser, and > > with some images even that much is not visible (just garbage when I > > view source). I can display images smaller than 40k correctly. > > I''m storing the images in the database (mysql) and haven''t tried > > storing in the file system to see if that works or not. > > > There is another thread about a bug in ActionPack that might be > > related, but I wondered if anyone else has run into this problem with > > attachment_fu? > > Make sure your database can support that much data. Make sure it''s > configured correctly and that the field is large enough to hold that > much data. > > -- > Rick Olsonhttp://lighthouseapp.comhttp://weblog.techno-weenie.nethttp://mephistoblog.com--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---