![]() |
Copyright © TIBCO Software Inc. All rights reserved |
To enable block mode, specify the following parameters in the FileType section, FILE_OPTIONS element:
• blockTransferMode — When enabled, the file is published in blocks of data without further processing of the data (you must also specify the endPublishSubject parameter for FilePublisher and the generateFileSubjectName parameter for FileSubscriber.
• blockTransferSize – Specifies the block size, in bytes, that the adapter uses to publish the file. The default value is 65536. This parameter is not used for FileSubscriber.A file that is published in block transfer mode must be subscribed to in block transfer mode. Data received from a file that is published in block transfer mode does not have record or field characteristics. When the data is received by FileSubscriber, the blocks are written to a progress file. FileSubscriber generates a final output file only when it receives a message with the subject specified in genFileSubjectName. The FILE_LINE element is not required, and is ignored.FileSubscriber receives a message with a subject that FileSubscriber has defined with the generateFileSubjectName parameter. When block transfer mode is enabled, the following tags are ignored for that file type in FileSubscriber:When a file is published in block transfer mode, FilePublisher reads the file in blocks, as specified with the blockTransferSize, without additional processing of the data. The MESSAGE_FIELD element is not required, and is ignored.
![]() |
Copyright © TIBCO Software Inc. All rights reserved |