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

Azure DocumentDB Owner resource does not exist

How to fix error Msg 1801, Level 16, State 3, Line 1

How to Share webservice object to all user