GetPublicObjectUrl give an 404 error

May 6, 2013 at 3:37 PM
Hello, 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.
I'd like to do the same thing as dropbox "share file" feature.
Can someonehelp please
Thank you for reading =)