Base64 Encode/Decode

Administrator
Member, Moderator, Administrator Posts: 2,506
Base64 Encode/Decode
Encode & Decode functions for conversion Instream to Outstream
http://www.mibuso.com/dlinfo.asp?FileID=1198
Discuss this download here.
Encode & Decode functions for conversion Instream to Outstream
http://www.mibuso.com/dlinfo.asp?FileID=1198
Discuss this download here.
0
Comments
-
-- did contain some characters that crashes IE en FireFox0
-
Administrator wrote:Base64 Encode/Decode
Encode & Decode functions for conversion Instream to Outstream
http://www.mibuso.com/dlinfo.asp?FileID=1198
Discuss this download here.
How about this one:
It is really fast and uses automation from Commerce Gateway, as used in codeunit "BizTalk XML DOM Management"CREATE( CGBase64); CREATE( DOMDoc); CREATE( ADOStream); DOMNode := DOMDoc.createElement('b64'); // just a dummy to do the conversion CGBase64.Encode( iTxtFileName, DOMNode); ADOStream.Type := 2; // text ADOStream.Charset := 'us-ascii'; ADOStream.Open; ADOStream.WriteText( DOMNode.nodeTypedValue); IF EXISTS( iTxtFileName+'.b64') THEN ERASE( iTxtFileName+'.b64'); ADOStream.SaveToFile( iTxtFileName+'.b64'); ADOStream.Flush; ADOStream.Close; CLEAR( ADOStream); CLEAR( DOMNode); CLEAR( DOMDoc); CLEAR( CGBase64); with variables : CGBase64 Automation 'CG Request Client'.Base64 DOMNode Automation 'Microsoft XML, v6.0'.IXMLDOMNode DOMDoc Automation 'Microsoft XML, v6.0'.DOMDocument ADOStream Automation 'Microsoft ActiveX Data Objects 2.7 Library'.Stream
Did some small test with a PDFfile, and this one was about 1000 times faster (10 sec compared with 0,01 sec)0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions