                     sub_values[sub_values.length-1]['no_comma'] = true
                     return @template_json_tree.array
                         values: sub_values
-            else if value_type is 'object' and value.$reql_type$ is 'TIME' and value.epoch_time?
+            else if Object::toString.call(value) is '[object Object]' and value.$reql_type$ is 'TIME'
                 return @template_json_tree.span
                     classname: 'jt_date'
                     value: @date_to_string(value)
+            else if Object::toString.call(value) is '[object Object]' and value.$reql_type$ is 'BINARY'
+                return @template_json_tree.span
+                    classname: 'jt_bin'
+                    value: @binary_to_string(value)
+
             else if value_type is 'object'
                 sub_keys = []
                 for key of value

            result = args.result

            if jQuery.isPlainObject(result)
                if result.$reql_type$ is 'TIME' and result.epoch_time?
                    keys_count.primitive_value_count++
                else
                    for key, row of result

            return raw_date_str.slice(0, raw_date_str.indexOf('GMT')+3)+timezone


        binary_to_string: (bin) =>
            size = bin.data.length

            if size >= 1073741824
                bytes = (size/1073741824).toFixed(1)+'GB'
            else if size>=1048576
                size = (size/1048576).toFixed(1)+'MB'
            else if size>=1024
                size = (size/1024).toFixed(1)+'KB'
            else if size > 1
                size = size+' bytes'
            else if size <= 1
                size = size+' byte'

            "<binary, #{size}, \"#{bin.data.slice(0, 10)}...\">"

    class @ResultView extends DataExplorerView.SharedResultView
        className: 'result_view'
