Link to home
Start Free TrialLog in
Avatar of GNiessen
GNiessen

asked on

Foxpro 64bit decoding

Is there a way in Foxpro's scripting to decode a 64bit encoded PDF and be able to save it as a file.
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Do you mean the PDF encoded in e.g. mail attachment?
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GNiessen
GNiessen

ASKER

That sounds great.  We'll try that.
JFYI, Visual FoxPro 9 SP2 is recommended for this task as it can process rather long text strings.
Thanks for the help.
Just FYI: base64 is no 64 bit encoding, it is using a 64 characters subset of the 256 ASCII characters, 6bits per encoded character. That's why it's longer than the original file. It needs 4 base64 characters to encode 3 bytes, as 4x6bits = 3x8bits = 24 bits.

Bye, Olaf.
Believe or not Base64 uses 65 characters... :-)  But one of them isn't significant.

Is there any difference between "64 bit encoding" and "Base64 encoding" ?  I would say no. Base64 is just the correct term.

64 bit encryption means something else, of course.
The one more character is the = for padding output, nothing else. It's actually unneeded, if you know the decoded string should have full bytes only, you can simply drop additional bits and there are variants not using the padding character.

You surely know base is the mathematical term (besides radix), for describing how many different digits are used in a numerical system, eg decimal: base 10, hexadecimal: base 16, binary: base 2.

If there would be some 64bit encoding, it would mean something else. Another name for base64 encoding I know is 3-in-4 encoding. Even considering the group of 4 bytes needed to encode 3 original bytes are 4x8=32 bit, not 64, so why would it be called this way?

Googling the name 64bit encoding the only viable mention is talking of floating point numbers being encoded with 64bits and calling this a 64bit encoding.

We can only agree, that the term 64bit encoding rings a bell of what is meant. It's still the wrong term.

Bye, Olaf.