Android把bitmap转为file类型 ,图片转base64**
Android后台需要file文件,把bitmap转为file类型直接上代码//将Bitmap类型的图片转化成file类型,便于上传到服务器public File saveFile(Bitmap bm) throws IOException {String fileName = new Date().getTime() + “”;String path = Environment.getExternalStorageDirectory() + “/cads”;File dirFile = new
原创
2020-11-09 09:18:46 ·
1553 阅读 ·
0 评论