How to check if a BlobStream is valid?


there many members blobstream , i'm wondering use (if any) find out if blobstream valid.

in particular there (azure) example calls function:

        public void processimage(stream input, stream output)
        {
            int width;
            int height;
            var originalimage = new bitmap(input);

and crashes @ new bitmap(input) statement.

with invalid parameter  in system.drawing.dll.


http://www.ransen.com cad , graphics software

blobstream seem me inherit stream.

you can use canread check validity.

http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.storageclient.blobstream_members.aspx

chanmm


chanmm



Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

wcf-sql adapter bug for operation on same table

Error connecting to Azure Blob using Shared Access signature