EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Function Base64Encode

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#11393
Posted: 10/19/2009 10:22:43
by David MICHEL (Standard support level)
Joined: 09/23/2009
Posts: 48

Hello,

How to implement the Base64Encode method with an input and output file ?

function Base64Encode(InBuffer : pointer; InSize : integer; OutBuffer : pointer;
var OutSize : integer; WrapLines : boolean = true) : boolean;

Thank,
David.


Sincerely yours,
David MICHEL.
#11394
Posted: 10/19/2009 11:06:34
by Eugene Mayevski (EldoS Corp.)

In general, those functions are not intended for public use. If you want to use them anyway, you need to load the data from TFileStream into memory block, then pass it to Base64Encode, then save the resulting memory block to the output file.


Sincerely yours
Eugene Mayevski
#11398
Posted: 10/20/2009 03:12:09
by David MICHEL (Standard support level)
Joined: 09/23/2009
Posts: 48

I need to code data in base64 by removing the return to the line after 64 bytes by putting the value
WrapLines = false


Sincerely yours,
David MICHEL.

Reply

Statistics

Topic viewed 940 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!