Ginga
0.13.6
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
telemidia-util
include
util
Base64.h
1
/*
2
Base64.h
3
4
Copyright (C) 2004-2008 René Nyffenegger
5
6
This source code is provided 'as-is', without any express or implied
7
warranty. In no event will the author be held liable for any damages
8
arising from the use of this software.
9
10
Permission is granted to anyone to use this software for any purpose,
11
including commercial applications, and to alter it and redistribute it
12
freely, subject to the following restrictions:
13
14
1. The origin of this source code must not be misrepresented; you must not
15
claim that you wrote the original source code. If you use this source code
16
in a product, an acknowledgment in the product documentation would be
17
appreciated but is not required.
18
19
2. Altered source versions must be plainly marked as such, and must not be
20
misrepresented as being the original source code.
21
22
3. This notice may not be removed or altered from any source distribution.
23
24
René Nyffenegger rene.nyffenegger@adp-gmbh.ch
25
26
*/
27
28
#ifndef BASE64_H_
29
#define BASE64_H_
30
31
#include "util/functions.h"
32
33
#include <string>
34
#include <iostream>
35
using namespace
std;
36
37
TELEMIDIA_UTIL_BEGIN_DECLS
38
39
string
base64_encode(
unsigned
char
const
* ,
unsigned
int
len);
40
string
base64_decode(std::string
const
& s);
41
string
getBase64FromFile(
string
file_path);
42
int
writeFileFromBase64(
string
payload,
char
* file_path);
43
44
TELEMIDIA_UTIL_END_DECLS
45
46
#endif
/* BASE64_H_ */
Generated on Tue Aug 5 2014 15:35:06 for Ginga by
1.8.6