locked
Create a StorageItem from a blob RRS feed

  • Question

  • Is there a way to create a StorageItem from a blob ?
    Thursday, June 21, 2012 10:52 AM

Answers

All replies

  • Do you mean a file?

    Jeff Sanders (MSFT)

    Thursday, June 21, 2012 12:17 PM
    Moderator
  • Yes. I have a blob and I would like to convert it into a file so I can share it.

    Because currently I have a way to do it but I have to save the blob as a file in the local folder. Is there an other way to do it on the fly ?

    In the end, I would like to use the file to do a :

     request.data.setStorageItems([file]);

    Friday, June 22, 2012 8:40 AM
  • You could use an in memory stream I suppose.  The techique is discussed in several posts: http://social.msdn.microsoft.com/search/en-us/windows/apps?query=stream+blob&Refinement=180

    You could post your solution to share once you have a solution to help the community!

    -Jeff


    Jeff Sanders (MSFT)

    • Marked as answer by Dino He Monday, July 9, 2012 10:32 AM
    Friday, June 22, 2012 7:36 PM
    Moderator