# convertLocalImageToBase64 ^6.3
本地照片转换为base64数据
- 参数描述:
| Prop | Type | Required | Default | Description | 
|---|---|---|---|---|
| param | Object | Y | {}属性: filePath:{Type: String, Default: N/A, Description: 本地路径 } | 请求参数 | 
# 接口调用示例
this.$bridge
    .convertLocalImageToBase64(params)
    .then(res => {    
    this.$alert(res)
    })
    .catch(err => {
    this.$toast(err)
    })
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# 返回参数
- 成功时返回
| Prop | Type | Default | Description | 
|---|---|---|---|
| base64 | String | N/A | - | 
- 失败时返回
| Prop | Type | Default | Description | 
|---|---|---|---|
| errorCode | Number | N/A | -1请求失败 | 
