|
|
|
Как сконвертить строку в base64
|
|||
|---|---|---|---|
|
#18+
Как сконвертить строку в base64 на ВСВ6, но желательно без использования заумных бибилиотек? Приведите код, плиз! :) Заранее спасибо! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.05.2006, 21:48 |
|
||
|
Как сконвертить строку в base64
|
|||
|---|---|---|---|
|
#18+
Serega128Как сконвертить строку в base64 на ВСВ6Поиск рулит. Posted via ActualForum NNTP Server 1.3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.05.2006, 08:50 |
|
||
|
Как сконвертить строку в base64
|
|||
|---|---|---|---|
|
#18+
только инлан функции Samples Case 1: You want to decode a Base64-encoded application with the file name "test.b64" and store the decoded application in "test.exe". Код: plaintext 1. Код: plaintext 1. 2. 3. 4. Case 3: You want to encode a file into Base64 and store the decoded data in the file in "test.b64". Код: plaintext 1. Case 4: You want to encode a buffer and store the encoded data in another buffer. This case is a bit more complicated than just encoding a file. Encoding a buffer means that your encoded data will be around 30% larger than your source data. To create a buffer that is capable of holding all the encoded data, you can call CreateMatchingEncodingBuffer. The function takes two parameters. The first parameter tells the function how many bytes there are in your buffer that need to be encoded. The second parameter is is the address to a char* that will be filled by the function with the address of a matching buffer for the encoded data. DO NOT FORGET to delete pInput as soon as you do not need it any more. In this sample, pInput contains 114 bytes that I want to be encoded. At first, I create a matching buffer by calling CreateMatchingEncodingBuffer. Then, I pass pInput and pB64Output to EncodeBuffer and tell it that there are 114 bytes to encode in pInput. The function now converts the bytes from pInput to Base64 and stores the result in pB64Output. Код: plaintext 1. 2. 3. 4. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.05.2006, 17:37 |
|
||
|
|

start [/forum/topic.php?fid=57&fpage=351&tid=2031146]: |
0ms |
get settings: |
5ms |
get forum list: |
8ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
29ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
23ms |
get tp. blocked users: |
1ms |
| others: | 215ms |
| total: | 294ms |

| 0 / 0 |
