Ok so i have the following code-- it works perfectly for storing jpgs, but does not store pdfs. Any idea why?
public bool TryStoreImage(string uri, string fileName)
{
try
{
WebClient wc = new WebClient();
var blob = new BlobStorage().GetCloudBlobContainer();
var store = blob.GetBlobReference(fileName);
store.UploadByteArray(wc.DownloadData(uri));
return true;
}
catch (Exception exc)
{
return false;
}
}
`
Again, every pdf i try to access gives me "pdf does not exist," even though i can see the pdf in the azure management screen. Every jpg i store however is perfectly accessible.