mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 07:45:26 +03:00
add dlna service methods
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user