yumapro  20.10-12
YumaPro SDK
blob.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3  * Copyright (c) 2012 - 2021, YumaWorks, Inc., All Rights Reserved.
4  *
5  * Unless required by applicable law or agreed to in writing,
6  * software distributed under the License is distributed on an
7  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8  * KIND, either express or implied. See the License for the
9  * specific language governing permissions and limitations
10  * under the License.
11  */
12 #ifndef _H_blob
13 #define _H_blob
14 /* FILE: blob.h
15 *********************************************************************
16 * *
17 * P U R P O S E *
18 * *
19 *********************************************************************/
20 
26 /*********************************************************************
27 * *
28 * C H A N G E H I S T O R Y *
29 * *
30 *********************************************************************
31 
32 date init comment
33 ----------------------------------------------------------------------
34 22-apr-05 abb begun
35 */
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 
42 
65 extern void
66  blob2bin (const char *pblob,
67  unsigned char *pbuff,
68  uint32 bsize);
69 
70 
81 extern void
82  bin2blob (const unsigned char *pbuff,
83  char *pblob,
84  uint32 bsize);
85 
86  // END b64util
88 
89 
90 #ifdef __cplusplus
91 } /* end extern 'C' */
92 #endif
93 
94 #endif /* _H_blob */
blob2bin
void blob2bin(const char *pblob, unsigned char *pbuff, uint32 bsize)
Convert a mySQL BLOB to a binary string.
Definition: blob.c:119
blob.h
binary to string conversion for database storage
bin2blob
void bin2blob(const unsigned char *pbuff, char *pblob, uint32 bsize)
Convert a binary string to to a mySQL BLOB.
Definition: blob.c:148