Page 1 of 1

Posted: Mon Oct 14, 2002 4:41 pm
by BackupUser
Restored from previous forum. Originally posted by Jose.

Hi,

Anybody have a bit of code that uses the Base64Encoder() function
with a file.

I am trying to write code to encode a binary file with Base64
in the first instance and then decode the resulting Base64 file
back to the original Binary file with the reverse:).

The Base64Encoder() only seems to encode in memory.

Any help appreciated.
Thanks
Jose

Registered PureBasic User

Posted: Mon Oct 14, 2002 5:28 pm
by BackupUser
Restored from previous forum. Originally posted by Rings.

Load File into reserved memory, do your encoding and write back the memory to disk

Its a long way to the top if you wanna .....CodeGuru

Posted: Mon Oct 14, 2002 7:01 pm
by BackupUser
Restored from previous forum. Originally posted by Jose.

Hi Rings,Thanks, thought of that:).

Still leaves me with two problems, Large files are going to kill the
machine, and how to decode...

Jose


Registered PureBasic User

Posted: Mon Oct 14, 2002 8:24 pm
by BackupUser
Restored from previous forum. Originally posted by tranquil.

@Jose: My words since many month that we need stream-support for every command in the cipher lib. CRC32, MD5, Base64.

But it seems that it is not planned yet. Seems that we have to find our own way to calc that.

Mike

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User