Jump to content

how to encode and decode using __Au3Obj_Mem_Base64Decode


Recommended Posts

hi all, in this topic, i get the solution using example, but he used __Au3Obj_Mem_Base64Decode to reduce the inlineSWF file size,

I have added little input control, you'll figure out what's it for. By using AutoItObject you get Ward's base64 decoder for free. I used that to shrink the size of the embedded file.

how to encode it like that? i have an SWF file with 9 MB of size! and reading it as string makes my script very very huge! please HELP.

Link to comment
Share on other sites

in vbs, to encode is:

Set oConv = DotNetFactory.CreateInstance ( "System.Convert" )

Set oAscii = DotNetFactory.CreateInstance ( "System.Text.ASCIIEncoding" )

sReturnBase64 = oConv.ToBase64String ( oAscii.GetBytes ( sCallersItemToEncode ) )

Set oConv = Nothing

Set oAscii = Nothing

to decode is:

Set oConv = DotNetFactory.CreateInstance ( "System.Convert" )

Set oAscii = DotNetFactory.CreateInstance ( "System.Text.ASCIIEncoding" )

sReturnDecodedBase64= oAscii.GetString ( oConv.FromBase64String ( base64Str ) )

Set oConv = Nothing

Set oAscii = Nothing

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...