(self, handler, content_type=None)
Sends the entire content of this BinaryBlock out to a client
        via the specified handler object.

        :handler:
            A RequestHandler object. If this BinaryBlock is a link to a blobstore object
            then the handler must have a send_blob() method which accepts a blobstore.BlobInfo object.
            All handlers which subclass blobstore_handlers.BlobStoreDownloadHandler have this capability.

        :content_type:
            Optional. If specified, the handler's response content type will be set to this value.
Sends the entire content of this BinaryBlock out to a client
        via the specified handler object.
Sends the entire content of this BinaryBlock out to a client via the specified handler object .
def send_to_handler(self, handler, content_type=None):
        """ Sends the entire content of this BinaryBlock out to a client
        via the specified handler object.

        :handler:
            A RequestHandler object. If this BinaryBlock is a link to a blobstore object
            then the handler must have a send_blob() method which accepts a blobstore.BlobInfo object.
            All handlers which subclass blobstore_handlers.BlobStoreDownloadHandler have this capability.

        :content_type:
            Optional. If specified, the handler's response content type will be set to this value.

        """
        if self.is_link():
            handler.send_blob(self.linked_blob, content_type=content_type)

        else:
            if content_type is not None:
                handler.response.content_type = str(content_type)

            data = self.read(INCOMING_CONTENT_BUFFER_SIZE)
            while data:
                handler.response.write(data)
                data = self.read(INCOMING_CONTENT_BUFFER_SIZE)
def send_to_handler ( self , handler , content_type = None ) : if self . is_link ( ) : handler . send_blob ( self . linked_blob , content_type = content_type ) else : if content_type is not None : handler . response . content_type = str ( content_type ) data = self . read ( INCOMING_CONTENT_BUFFER_SIZE ) while data : handler . response . write ( data ) data = self . read ( INCOMING_CONTENT_BUFFER_SIZE )