Hi,
I am trying to write some content into file with TRANSFER statement, but it is not working as expected. When i try to write the content into file, the size of the file is doubled. I am getting the file from a different source in encoded base 64 format and i decode before writing the content.
Ex: When i upload the file (size ~800kb) and store it into string variable, i find the string to have 800,000 characters in debug mode. But, when i try to write the same string into File through below statement's, i find the size to be of 16,00,000 character's (~1600 kb). Since this is an background job, not sure, what is the mode i should write to the file. Can someone help to solve this issue ?
OPEN DATASET lv_full_filename FOR OUTPUT IN BINARY MODE
(or)
OPEN DATASET lv_full_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT
Thanks and Regards,
Gaurav.