Just a quick little script I use when I want to save files, programs etc within a script to make it portable.
Thanks to Dick Lockey's post here, I modified it a little to put the code into clipboard once done, you can then paste the full code in say a SubRoutine and call it when you need that file extracted.

Code: Select all
Input>filename,Browse to Select a file for Base64 encoding
ExtractFileName>%filename%,strFileName
ReadFile>filename,filedata
Base64>filedata,Encode,b64data
PutClipBoard>Let>SomeVariable=%b64data%%CRLF%Base64>SomeVariable,Decode,BinaryData%CRLF%Let>WLN_NOCRLF=1%CRLF%WriteLn>%TEMP_DIR%%strFileName%,wres,BinaryData