add dlna service methods

This commit is contained in:
Luke Pulverenti
2014-03-26 15:21:29 -04:00
parent 80d84225b7
commit 6ac7675c15
9 changed files with 115 additions and 28 deletions

View File

@@ -15,7 +15,6 @@ using ServiceStack.Text.Controller;
using ServiceStack.Web;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Threading;
@@ -776,15 +775,6 @@ namespace MediaBrowser.Api.Images
var bytes = Convert.FromBase64String(text);
// Validate first
using (var validationStream = new MemoryStream(bytes))
{
// This will throw an exception if it's not a valid image
using (Image.FromStream(validationStream))
{
}
}
var memoryStream = new MemoryStream(bytes)
{
Position = 0