# File lib/cgikit/bytedata.rb, line 26
      def new_with_file( filename )
        bytes = nil
        open(filename) do |f|
          bytes      = new(f.read)
          bytes.path = f.path
          if ext = File.extname(filename) then
            ext.tr!('.', '')
            bytes.content_type = ResourceManager.mime(ext)
          end
        end
        bytes
      end