Maybe I'm just not understanding how to use the Read
method for the File
object, but I see in docs that io.Reader
is within the multipart.File
interface, but I don't understand how to access it. Any guidance would be greatly appreciated.
如何将multipart.File转换为io.Reader
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- doujun7161 2019-06-04 03:32关注
That means that the
multipart.File
interface includes theio.Reader
interface, so any object that is a validmultipart.File
is also a validio.Reader
. Therefore, you can call theRead
method (as defined byio.Reader
) on an object of typemultipart.File
.本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 1无用 1
悬赏问题
- ¥15 苹果mac m1系统在关闭sip后怎么能使用app
- ¥15 在win系统Django虚拟环境下载mysqlclient报错
- ¥15 pg数据库导入数据序列重复
- ¥15 三分类机器学习模型可视化分析
- ¥15 本地测试网站127.0.0.1 已拒绝连接,如何解决?(标签-ubuntu)
- ¥50 Qt在release捕获异常并跟踪堆栈(有Demo,跑一下环境再回答)
- ¥30 python,LLM 文本提炼
- ¥15 关于将inet引入的相关问题
- ¥15 关于一个倒计时的操作和显示设计
- ¥15 提问STK的问题,哪位航天领域的同学会啊