diff -r 997f6d7738f7 -r 0d837624e795 app/views/repositories/entry.html.erb
--- a/app/views/repositories/entry.html.erb
+++ b/app/views/repositories/entry.html.erb
@@ -9,7 +9,11 @@
 <p><%= render :partial => 'link_to_functions' %></p>
 
 <% if @display_raw %>
-   <em><%= l(:text_binary_data) %></em>
+   <% if @content.size && @content.size > Setting.file_max_size_displayed.to_i.kilobyte %>
+     <em><%= l(:text_data_too_large) %></em>
+   <% else %>
+     <em><%= l(:text_binary_data) %></em>
+   <% end %>
 <% else %>
   <%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %>
 <% end %>
diff -r 997f6d7738f7 -r 0d837624e795 config/locales/en.yml
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1033,6 +1033,7 @@
   text_has_welcome_page_info: <b>Welcome page</b><p>You can replace the standard {{overview_link}} page for this project with your own welcome page.<br>This page will be editable using the project Wiki.
   text_has_welcome_page_wiki_disabled: <b>Note:</b> You must enable the Wiki module in the {{modules_link}} tab before you can create or edit this page.
   text_binary_data: Binary data
+  text_data_too_large: Binary data, or file too large to display
 
   default_role_manager: Manager
   default_role_developer: Developer
