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)?
Solved FileStorage.server.Store workaround?
Discussion in 'Rust Development' started by theconezone, Jul 14, 2016.
-
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 see, so we do have access to MemoryStream.
I was just using it wrong, thanks. -
Wulf Community Admin
-
In that case, we're going to need some kind of utility method to for this.