Error occured when read a large size file


webMethods version : 6.1

when we read the file which size is about 20M with the following service:
Step 1 :pub.file:getFile
Step 2 :pub.string:bytesToString

error as the following occured when traced to step 2:
An error occurred while tracing.

is there file size limitation for the webemthods, because the read file
action successfully when the file size is small.
Is there any way to read the large file on webMethods ?


You are attempting to read the entire File into memory at one time this way.

20M seems a bit large for this.

For one approach to this, see page 30 of the 6.1 Flat File Schema delveloper’s guide.