mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CD parity information database test
This commit is contained in:
34
CUETools.CTDB/UploadHelper/StringMimePart.cs
Normal file
34
CUETools.CTDB/UploadHelper/StringMimePart.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
// http://aspnetupload.com
|
||||
// Copyright <20> 2009 Krystalware, Inc.
|
||||
//
|
||||
// This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License
|
||||
// http://creativecommons.org/licenses/by-sa/3.0/us/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
|
||||
namespace Krystalware.UploadHelper
|
||||
{
|
||||
public class StringMimePart : MimePart
|
||||
{
|
||||
Stream _data;
|
||||
|
||||
public string StringData
|
||||
{
|
||||
set
|
||||
{
|
||||
_data = new MemoryStream(Encoding.UTF8.GetBytes(value));
|
||||
}
|
||||
}
|
||||
|
||||
public override Stream Data
|
||||
{
|
||||
get
|
||||
{
|
||||
return _data;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user