D
dana
Guest
IT seems that when i transfer a file from the appserver to a remote client it works fairly well with Standard Progress ABL code and Raw datatype. However for some reason when the file on the appserver exceeds 3.5 GB the client side file just keeps growing uncontrollably. So if the file on the appserver was 4 GB then the client side file will grow until it consumes all the disk space on the client. (Maybe this is a known bug) I am using RAW datatype to store 30k Chunks of data and then sending it back to a client machine and reconstructing the file . I need to know if this is the best way or if there is a faster or better way to transfer large files from an appserver to a remote client. here is the code that pulls the data from the file: import stream ghStream unformatted grChunk no-error. /* If there is an error return that there are no more chunks */ if error-status:error = YES then assign lMoreChunks = NO error-status:error = NO. else lMoreChunks = YES. /* Find the first temp table record */ create gttRaw. /* Set the raw data for the temp table */ assign gttRaw.RawData = grChunk. Then a snippet of client side code does this: /* Get the first temp table record. */ find first gttRaw. /* Write the data to a stream out to local file*/ put stream strAsFile control gttRaw.RawData.
Continue reading...
Continue reading...