New Response

« Return to the main article

You are replying to:

  1. To encode and decode a file do the following:

    1) Take the "Base64.lss" file and create a new Agent out of it.

    2) Then look under the sub Initialize and notice the 2 last statements in this sub.

    isOkay =EncodeFile"d:\test.jpg","d:\test.enc") isOkay =DecodeFile"d:\xtest.enc","d:\xtest1.jpg")

    If you want to decode a file, just change the "d:\test.jpg" to the desired file. Then change the "d:\test.enc" to the desired output file.

    The same is true for the decode statement line.

    Note: When pasting the *.lss file into an agent you might need to rename the variable "replace" to something like "replaceStr".

Your Comments