def create_file_from_bytes(<EOL>self, share_name, directory_name, file_name, file,<EOL>index=<NUM_LIT:0>, count=None, content_settings=None, metadata=None, <EOL>validate_content=False, progress_callback=None, max_connections=<NUM_LIT:2>, <EOL>timeout=None):
_validate_not_none('<STR_LIT>', share_name)<EOL>_validate_not_none('<STR_LIT>', file_name)<EOL>_validate_not_none('<STR_LIT:file>', file)<EOL>_validate_type_bytes('<STR_LIT:file>', file)<EOL>if index < <NUM_LIT:0>:<EOL><INDENT>raise TypeError(_ERROR_VALUE_NEGATIVE.format('<STR_LIT:index>'))<EOL><DEDENT>if count is None or count < <NUM_LIT:0>:<EOL><INDENT>count = len(file) - index<EOL><DEDENT>stream = BytesIO(file)<EOL>stream.seek(index)<EOL>self.create_file_from_stream(<EOL>share_name, directory_name, file_name, stream, count,<EOL>content_settings, metadata, validate_content, progress_callback,<EOL>max_connections, timeout)<EOL>
Creates a new file from an array of bytes, or updates the content
of an existing file, with automatic chunking and progress
notifications.

:param str share_name:
    Name of existing share.
:param str directory_name:
    The path to the directory.
:param str file_name:
    Name of file to create or update.
:param str file:
    Content of file as an array of bytes.
:param int index:
    Start index in the array of bytes.
:param int count:
    Number of bytes to upload. Set to None or negative value to upload
    all bytes starting from index.
:param ~azure.storage.file.models.ContentSettings content_settings:
    ContentSettings object used to set file properties.
:param metadata:
    Name-value pairs associated with the file as metadata.
:type metadata: a dict mapping str to str
:param bool validate_content:
    If true, calculates an MD5 hash for each range of the file. The storage 
    service checks the hash of the content that has arrived with the hash 
    that was sent. This is primarily valuable for detecting bitflips on 
    the wire if using http instead of https as https (the default) will 
    already validate. Note that this MD5 hash is not stored with the 
    file.
:param progress_callback:
    Callback for progress with signature function(current, total) where
    current is the number of bytes transfered so far and total is the
    size of the file, or None if the total size is unknown.
:type progress_callback: callback function in format of func(current, total)
:param int max_connections:
    Maximum number of parallel connections to use.
:param int timeout:
    The timeout parameter is expressed in seconds. This method may make 
    multiple calls to the Azure service and the timeout will apply to 
    each call individually.