jjzjj

Firebase 存储图像无法正确上传

我正在尝试将我从手机拍摄的图像发送到Firebase存储。第一个函数使用图像选择器插件获取图像,并将路径返回作为上传函数的参数传递。图像上传到云存储,但在面板中类型为application/octet-stream并且图像不显示Stringdownload_path;varimageFile;picker()async{FiletheImage=awaitImagePicker.pickImage(source:ImageSource.gallery);imageFile=theImage;vartheimagepath=theImage.path;setState((){imageF

Firebase 存储图像无法正确上传

我正在尝试将我从手机拍摄的图像发送到Firebase存储。第一个函数使用图像选择器插件获取图像,并将路径返回作为上传函数的参数传递。图像上传到云存储,但在面板中类型为application/octet-stream并且图像不显示Stringdownload_path;varimageFile;picker()async{FiletheImage=awaitImagePicker.pickImage(source:ImageSource.gallery);imageFile=theImage;vartheimagepath=theImage.path;setState((){imageF