/// <summary> /// Create a CZML resource from a stream. The data will /// be embedded in the CZML document using a data URI. /// </summary> /// <param name="stream">The stream containing data to write.</param> /// <param name="mimeType">The mime type of the data.</param> /// <returns>A new <see cref="CesiumResource"/> containing the data as a data URI.</returns> public static CesiumResource FromStream(Stream stream, string mimeType) { string dataUri = CesiumFormattingHelper.StreamToDataUri(stream, mimeType); return(new CesiumResource(dataUri, CesiumResourceBehavior.Embed)); }