title: How do I serialize a .NET object into Azure Blob Storage without using a temporary file?
body: <p>I want to store a .NET object into Azure Blob Storage.</p>
  
  <p>Currently I serialize it into an XML file using <code>TextWriter</code> (<code>episodeList</code> is the object I want serialized):</p>
  
  <pre><code>XmlAttributeOverrides overrides = new XmlAttributeOverrides();
  XmlAttributes Xmlattr = new XmlAttributes();
  Xmlattr.XmlRoot = new XmlRootAttribute("EPISODES");
  overrides.Add(typeof(List&lt;EpisodeData&gt;), Xmlattr);
  XmlSerializer serializer = new XmlSerializer(typeof(List&lt;EpisodeData&gt;), overrides);
  TextWriter textWriter = new StreamWriter(@"C:\movie.xml");
  serializer.Serialize(textWriter, episodeList);
  textWriter.Close();
  </code></pre>
  
  <p>and then upload the file into Blob Storage:</p>
  
  <pre><code>CloudBlobClient blobStorage = createOrGetReferenceOfBlobStorage(folderName);
  string uniqueBlobName = string.Format("{0}/{1}", folderName, fileName);
  CloudBlockBlob blob = clouBblockBlobPropertySetting(blobStorage, uniqueBlobName, ".txt");
  using (StreamWriter writer = new StreamWriter(blob.OpenWrite()))
  {
      writer.Write(content);
  } 
  </code></pre>
  
  <p>Is it possible to somehow skip the temporary file so that the XML is directly uploaded into Azure Blob Storage?</p>