对于我的应用程序,我想将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的程序集。
这个问题有解决方法吗?