1. As of today's update, FileStorage.server.Store no longer accepts a byte array, but instead a MemoryStream.

    We can't create MemoryStream, because it is part of System.IO.

    Any idea how we can work around this (signs like SignArtist depend on FileStorage.server.Store)?
     
  2. Wulf

    Wulf Community Admin

    In most instances, this will work:
    Code:
    var stream = new MemoryStream();
    stream.Write(www.bytes, 0, www.bytes.Length);
    sign.textureID = FileStorage.server.Store(stream, FileStorage.Type.png, sign.net.ID, 0U);
    I wouldn't expect it to always work though.
     
  3. I see, so we do have access to MemoryStream.

    I was just using it wrong, thanks.
     
  4. Wulf

    Wulf Community Admin

    It depends on where you use it, so yes... but you're not really supposed to and it may not last.
     
  5. I see.

    In that case, we're going to need some kind of utility method to for this.