Professional Documents
Culture Documents
http://www.ohloh.net/p/SharpBox/rss_articles?page=72
Sign In | Register Committed to Code Projects People Projects Forums Projects People Tools Meta
SharpBox
General
15
13/4/2012 14:40
News - Ohloh
http://www.ohloh.net/p/SharpBox/rss_articles?page=72
Filter on:
News
Edit RSS Feeds [1813 total ]
Source code checked in, #75763
Posted 10 months ago by dei79 added StoreGate to the list of supported services
Posted 10 months ago by dei79 added access for WebRequest and Response and Exception during upload
Posted 10 months ago by dei79 Hi, oh sorry I missunderstood you, what you want to is easy, just check out the following unittest: [Test()] public void FileTestDirectDownloadUrl() { // open the publicFilder ICloudDirectoryEntry publicFolder = cloudStorage.GetFolder(testBaseFolderServerData); // get the direct url to the pptx Uri uri = cloudStorage.GetFileSystemObjectUrl("DirectDownloadTest.pptx", publicFolder); // target String temp = Environment.ExpandEnvironmentVariables("%temp%\\deg.pptx"); // download to temp WebClient cl = new WebClient();
25
13/4/2012 14:40
News - Ohloh
http://www.ohloh.net/p/SharpBox/rss_articles?page=72
// in the case of webdav we need to add the creds if (Credentials is GenericNetworkCredentials) { GenericNetworkCredentials creds = Credentials as GenericNetworkCredentials; cl.Credentials = creds.GetCredential(null, null); } cl.DownloadFile(uri, temp); // check if file exists Assert.That(File.Exists(temp)); } Cheers Dirk 2011/6/15 realex82 <notifications@codeplex.com> From: realex82 hello, thanks for all quick reply. I' ve tested your code but the output the return to me is a text and is this: {"revision": 51, "thumb_exists": false, "bytes": 777331, "modified": "Sat, 11 Jun 2011 18:11:05 +0000", "path": "/Public/rec1.mp4", "is_dir": false, "icon": "page_white_film", "root": "dropbox", "mime_type": "video/mp4", "size": "759.1KB"} Is a text and not the content of file, of can i retrieve the content of a file whit absolute url ? This is th code that i use ICloudDirectoryEntry folder =_storage.GetFolder("/Public"); Stream inputStream =new MemoryStream(); Uri uri = _storage.GetFileSystemObjectUrl("rec1.mp4", folder); string tmp =(Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.MyDocuments), "tmpbgLarge.txt")); var request = (HttpWebRequest) WebRequest.Create (uri); WebClient cl = new WebClient(); cl.DownloadFile(uri, tmp ); thanks bye Read the full discussion online. To add a post to this discussion, reply to this email (sharpbox@discussions.codeplex.com) To start a new discussion for this project, email sharpbox@discussions.codeplex.com You are receiving this email because you subscribed to this discussion on CodePlex. You can
35
13/4/2012 14:40
News - Ohloh
http://www.ohloh.net/p/SharpBox/rss_articles?page=72
unsubscribe or change your settings on codePlex.com. Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com [Less]
Posted 10 months ago by realex82 hello, thanks for all quick reply. I' ve tested your code but the output the return to me is a text and is this: {"revision": 51, "thumb_exists": false, "bytes": 777331, "modified": "Sat, 11 Jun 2011 18:11:05 +0000", "path": ... [More]
Posted 10 months ago by dei79 Hi, you are able to copy the WebResponse- Stream into the ICloudFileSystemEntry Data Stream. Just check out the trunk code, we added a couple of things. Dirk Sent from my iPad On 15.06.2011, at 12:10 ... [More]
Posted 10 months ago by realex82 Hello, there is a methid that help me to make an upload on-the-fly ? so from url to Dropbox Account ? and not only from local file
Thanks Alex
45 13/4/2012 14:40
News - Ohloh
http://www.ohloh.net/p/SharpBox/rss_articles?page=72
Posted 10 months ago by dei79 Hi, the issue with the german umlauts are solved with check-in http://sharpbox.codeplex.com /SourceControl/changeset/changes/75591 and will be part of the upcomming 1.1 release Cheers Dirk Previous 1 2 About Forums Terms Privacy Copyright 2012 Black Duck Software, Inc., All Rights Reserved. Ohloh and the Ohloh logo are registered trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders. 70 71 72 73 74 181 182 Next
55
13/4/2012 14:40