private static String CreateData(DataType type, Byte[] buffer)
 {
     if (buffer == null || buffer.Length == 0)
     {
         return null;
     }
     return "data:" + type.GetDisplayValue() + ";base64," + Convert.ToBase64String(buffer);
 }