query_id = 694061adf492a154:4a24912d00000000 Modified 1 row ( s ) in 1 .02s 在对应路径下可看见新生成的文件:
query_id = 694061adf492a154:4a24912d00000000 Modified 1 row ( s ) in 1 .02s 在对应路径下可看见新生成的文件:
String filePath = [本地文件路径] ; byte [ ] imgData = FileUtil . readFileByBytes ( filePath ) ; String imgStr = Base64Util . encode ( imgData ) ; String imgParam = URLEncoder . encode ( imgStr , UTF-8 )
String filePath = [本地文件路径] ; byte [ ] imgData = FileUtil . readFileByBytes ( filePath ) ; String imgStr = Base64Util . encode ( imgData ) ; String imgParam = URLEncoder . encode ( imgStr , UTF-8 )
String filePath = [本地文件路径] ; byte [ ] imgData = FileUtil . readFileByBytes ( filePath ) ; String imgStr = Base64Util . encode ( imgData ) ; String imgParam = URLEncoder . encode ( imgStr , UTF-8 )
String filePath = [本地文件路径] ; byte [ ] imgData = FileUtil . readFileByBytes ( filePath ) ; String imgStr = Base64Util . encode ( imgData ) ; String imgParam = URLEncoder . encode ( imgStr , UTF-8 )
String filePath = [本地文件路径] ; byte [ ] imgData = FileUtil . readFileByBytes ( filePath ) ; String imgStr = Base64Util . encode ( imgData ) ; String imgParam = URLEncoder . encode ( imgStr , UTF-8 )
在终端中执行以下命令,开始模型预测(注意修改图片路径)。
请求头 除公共头域外,无其他特殊请求头 初始化参数 参数名称 说明 类型 必填 默认值 示例值 bucketName 存储桶名称 string 是 - "bucket001" objectName 上传后对象名称 string 是 - "file001" data 上传数据, 类型为string时表示文件路径,还支持Buffer和Blob对象 string |
String filePath = [本地文件路径] ; byte [ ] imgData = FileUtil . readFileByBytes ( filePath ) ; String imgStr = Base64Util . encode ( imgData ) ; String imgParam = URLEncoder . encode ( imgStr , UTF-8 )