Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>NO erkanyildiz maybe your above answer is wrong because there is no difference between long and shorted URL they both redirect me to a image once look at this</p> <ol> <li><p>this shorted url not works because it's from DropBox</p> <pre><code>NSData *imageData=[NSData dataWithContentsOfURL:[NSURL URLWithString:@"https://db.tt/KH5NgfT1"] options:NSDataReadingUncached error:&amp;error]; UIImage *downloadedImage=[UIImage imageWithData:imageData]; </code></pre></li> <li><p>this shorted url works because it's NOT from DropBox</p> <pre><code>NSData *imageData=[NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://goo.gl/FTh7No"] options:NSDataReadingUncached error:&amp;error]; UIImage *downloadedImage=[UIImage imageWithData:imageData]; </code></pre></li> <li><p>this long url not works because it's from DropBox</p> <pre><code>NSData *imageData=[NSData dataWithContentsOfURL:[NSURL URLWithString:@"https://www.dropbox.com/s/5443wq99wu9a0bu/IMG_3679.PNG"] options:NSDataReadingUncached error:&amp;error]; UIImage *downloadedImage=[UIImage imageWithData:imageData]; </code></pre></li> <li><p>this long url works because it's NOT from DropBox</p> <pre><code>NSData *imageData=[NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://www.wired.com/wiredenterprise/wp-content/uploads/2013/07/20130627-DROPBOX-OFFICE-147edit.jpg"] options:NSDataReadingUncached error:&amp;error]; UIImage *downloadedImage=[UIImage imageWithData:imageData]; </code></pre></li> </ol> <p>So, finally I think the problem is at DropBox server may be they have some kind of web-encription so that we can't download image directly using NSData dataWithContentsOfURL: and may be because of web-encription it support to Facebook.</p> <p>solution is DropBox provides api for downloading image <a href="https://api-content.dropbox.com/1/files/" rel="nofollow">https://api-content.dropbox.com/1/files/</a>/</p> <p><a href="https://www.dropbox.com/developers/core/docs" rel="nofollow">DropBox Core API Documentation</a> </p> <p>Thanks for Replying</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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