Take a look at:
   http://www.webmaster-toolkit.com/mime-types.shtml

There are several registered mime types for zip and gzip files.
These will give you valid values for :content_type.

On Oct 16, 2:07 pm, GregD <[email protected]> wrote:
> Well, it wont get THAT large. Maybe 200K.  But, I see your point. I
> don't have have a place to host the file right now.  I'd like to send
> it compressed since it is plain text.  I was even thinking of sending
> an xls file summary, but that would be larger.
>
> Does anyone know if I compress it into another file using ZLib gzip
> format, how to send it?   Actually, any binary file.  The examples all
> show File.read and will that work with binary files.  I would think
> not.
>
> I'll look into hosting the 2 files instead.  But, it would be nice to
> see an example of sending something other than an image file.
>
> GregD
>
> On Oct 16, 1:38 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas-
>
> s.net> wrote:
> > Greg Ditrick wrote:
>
> > [...]
>
> > > The attachment is
> > > supporting data or db that I used to create the email.  It is actually
> > > a YAML flat file DB.  It is quite long and will grow each week up to a
> > > point.  Most everyone I'm emailing will not care to see the data
> > > within their email, but a few of my fellow "geeks" will, so a file
> > > would be best.
>
> > How big will this thing grow?  If most recipients don't want to see it,
> > why are you wasting their disk space with it?  If I were one of your
> > recipients and you were sending me weekly messages with big attachments,
> > I think I'd be pretty upset.  I'd suggest that it would be better to
> > provide a URL where the full data file can be downloaded by those who
> > are interested.
>
> > Best,
> > --
> > Marnen Laibow-Koserhttp://www.marnen.org
> > [email protected]
> > --
> > Posted viahttp://www.ruby-forum.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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to