将PDF文件保存在独立存储器中,以便在Windows Phone 8中进行读/写操作

时间:2014-11-10 11:39:23

标签: windows-phone-8 windows-phone-8.1

对于我的应用程序,我想将PDF文件放入隔离的存储空间,以便浏览相同的pdf文件 我的要求。

是否可以在隔离存储中写入PDF文件?

这是我的代码:

var AppIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication();
var FileName = AppIsolatedStorage.CreateFile(FName);
string FilePath = uriAddress.LocalPath;
Uri FileDataa = new Uri(FilePath, UriKind.Relative);
var FileData = Application.GetResourceStream(FileDataa);

byte[] bytes = new byte[4096];      
int Count;        
while ((Count = FileData.Stream.Read(bytes, 0, 4096)) > 0) 
{
    FileName.Write(bytes, 0, Count);
}
FileName.Close();

它只在未知格式的隔离存储中创建文件名。 我也浏览了这个链接http://our.componentone.com/groups/topic/save-pdf-file-to-local-storage/ 但是在windows phone8 / 8.1中没有支持c1PdfViewer1的程序集。

这个问题有解决方法吗?

0 个答案:

没有答案