I'm probably doing something completely stupid as I'm new to Azure (being a DB / application developer). It may not even be an Azure issue, but please stick with me.
I have a small ASP.NET application that displays pdf files stored locally in the file system in a browser. I use an iframe with the class set to "PdfViewer" and the src attribute set dynamically to the full path of the file. This works fine in
IE 9 and Chrome so I know that the PDF viewer plug-ins are working.
However, I intend to run the app in Azure and so I've been testing out the Azure blob storage. I understand the intricacies of this (I think!) I've uploaded some pdfs (and some jpegs as well for a comparison) using "Azure Storage Explorer" (great
little app - google it!) This allows me to get the files' URIs as well as setting the blob container to public so there's no security block. I've waded through all the naming conventions for containers, blobs, etc. and they are OK.
According to
https://www.windowsazure.com/en-us/develop/net/how-to-guides/blob-storage/#configure-access and http://social.msdn.microsoft.com/Forums/en-US/windowsazuredevelopment/thread/4ed63963-047b-46f7-b8bb-5de5e1e8cddf, it should now just be
a matter of setting the src attribute of the PdfViewer to this URI.
OK - it works in IE9 but not in Chrome!
In Chrome - all that happens is a blank space where the PDF viewer should be. I've tried changing the blob security, which simply causes a "object not found" type message - so I know it's not that. I've renamed the
files to remove underscores, upper-case, etc. No luck! I've checked the page source and the URI syntax is fine. However, I've noticed that if I try to paste this URI into the address bar in Chrome, it just disappears and I get "About: Blank" instead.
This doesn't happen in IE9 - it takes the URI and displays the pdf. This is suggesting to me that it's more to do with internet security through Chrome than the nature of the blob store itself.
Six hours so far!! Please, can anyone help?
Simon Poulton,
Director, BioEcoSS Ltd.