1

I'm trying to make a basic program which upload a picture into dropbox(that part is fully working) and then it give that picture public url in order to download it. I use the following code to get that url:

private void GetRessourceURI()
{
    try
    {
        ICloudDirectoryEntry fEntry = m_DropBoxStorage.GetFolder("/public");
        ICloudFileSystemEntry fs = m_DropBoxStorage.GetFileSystemObject(m_RessourceFileName, fEntry);

        m_RessourceURI = DropBoxStorageProviderTools.GetPublicObjectUrl(m_AccessToken, fs);
       // m_RessourceURI = m_DropBoxStorage.GetFileSystemObjectUrl("/" + RessourceFileName, m_DropBoxStorage.GetFolder("/"));
        Console.WriteLine(m_RessourceURI);
    }
    catch (SharpBoxException AnyException)
    {
        throw AnyException;
    }
}

when the program is running i get the following link : http://dl.dropboxusercontent.com/u/168609230/Lena.jpg , but when i want to use the link dropbox give a 404 error i tried to get the link with GetFileSystemObjectUrl but it give me a temporary URI that i cannot use. Can someone help please

Flexo
  • 87,323
  • 22
  • 191
  • 272
Doctor_Why
  • 61
  • 10
  • If you managed to solve your own question you should post it as an answer, not by editing the question. – Flexo Jul 06 '13 at 16:15

0 Answers0