locked
BlobStream CopyTo(Stream) method only works for small file streams RRS feed

  • Question

  • I am trying to use:

    CopyTo(Stream) method for a blobstream rereived form the healthvault file type (which contains an image)

    This works fine for very small files retrieved from the file type in healthvault but breaks on larger images (more than 300pixels wide)

    Do you have any more help on using this for copying images more than 30 pixels wide

    Here is my code:

    Stream imageStream = new MemoryStream();

    healthvaultfile.GetStream().CopyTo(imageStream);

    the error I get is : The request was aborted: The connection was closed unexpectedly.
    Monday, July 8, 2013 8:30 AM

All replies

  • Hi Bob,

    Can you please send me a bit more code (to show how you set up the BlobStream) to v-sanpil at Microsoft.com?

    Thanks!

    Monday, July 8, 2013 6:42 PM