Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It's perfect library for work with rackspce. I am use it. And i am sure that it's not problem to use this library inside of windows service. But i think possible problems with .net framework client profile and com.mosso.cloudfiles.dll. But try first with client profile. </p> <p>Also i use following code to upload files to Rackspace(Configuration it's my configuration class. Instead of 'Configuration.RackSpaceUserName' and 'Configuration.RackSpaceKey' use yous own creadentials):</p> <pre><code> private Connection CreateConnection() { var userCredentials = new UserCredentials(Configuration.RackSpaceUserName, Configuration.RackSpaceKey); return new Connection(userCredentials); } public void SaveUniqueFile(string containerName, string fileName, Guid guid, byte[] buffer) { string extension = Path.GetExtension(fileName); Connection connection = CreateConnection(); MemoryStream stream = new MemoryStream(buffer); string uniqueFileName = String.Format("{0}{1}", guid, extension); connection.PutStorageItem(containerName, stream, uniqueFileName); } </code></pre> <p>Configuration something like this:</p> <pre><code>public class Configuration { public static string RackSpaceUserName = "userName"; public static string RackSpaceKey= "rackspaceKey"; } </code></pre> <p>I you don't want to use com.mosso.cloudfiles.dll very easy create you own driver for rackspace. Because actually for upload file to rackspace you just need send put request with 'X-Auth-Token' header. Also you can check request structure using <a href="http://www.fireuploader.com/" rel="nofollow">plugin for firefox</a> to view and upload files to Rackspace and <a href="http://getfirebug.com/" rel="nofollow">firebug</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload