办公室365中的文件流 [英] filestream in office 365

查看:113
本文介绍了办公室365中的文件流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,

i在office 365中遇到这行代码的问题,它会使用(FileStream imageStream =)'访问'目录'拒绝'异常

新的FileStream(myfile.jpg,FileMode.Create))

{//某个进程}

i用谷歌搜索但是还没找到确切的解决方案,任何一个可以帮助我?

解决方案

我认为错误信息很明显是什么问题。您没有权限在您尝试写入的任何文件夹中创建该文件。



那么,您要在哪个文件夹中创建文件?

Hello All,
i have a problem with this line of code in office 365, it throws 'access to 'directory' denied' exception
using (FileStream imageStream = new FileStream("myfile.jpg", FileMode.Create))
{ //some process }
i have googled but didn't find the exact solution yet, Any one can help me ?

解决方案

I think the error message makes it pretty obvious what's wrong. You don't have permissions to create that file in whatever folder you're trying to write it in.

So, what folder are you trying to create the file in?


这篇关于办公室365中的文件流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆