rename - 从图库中选择一张照片并重命名
问题描述
我从图库中选择了一张图片并想重命名它,然后将其上传到主机
但我无法更改图像名称
任何人都可以帮忙吗?
使用此代码,我接收并保存图像路径
String path = RealPath.getPathFromUri(this, data.getData());
File imgFile = new File(path);
解决方案
推荐阅读
- python - 为什么这个函数不返回 f pd.DataFrames?Python
- wpf - WPF如何做这个缩进?
- javascript - MutationObserver - 得到“TypeError: MutationObserver.observe: Argument 1 does not implement interface Node.”
- simulation - 如何使用 selectOutput 块创建多个卸货码头?
- amazon-web-services - 在 AWS Lambda 层中使用自定义 nodejs 函数
- python - SQLAlchemy 中的线程安全引擎和连接
- python - 从具有相同长度的数组的字典中创建数据框
- flutter - 我的应用栏上方的这个额外空间是什么?
- javascript - 为什么我的按钮在 vscode 的实时服务器中无法正常运行?(javascript)
- c# - 在 C# .NET 中读取 CSV 而无需输入字段名称