mirror of
https://github.com/Syping/ragephoto-cli.git
synced 2025-11-09 13:15:17 +01:00
use a empty jpeg instead of a null byte
This commit is contained in:
parent
a36c2c467b
commit
90362c07eb
5 changed files with 216 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
using RagePhoto;
|
||||
using System.CommandLine;
|
||||
using System.CommandLine;
|
||||
using System.Text;
|
||||
namespace RagePhoto.Cli;
|
||||
|
||||
internal static class Program {
|
||||
|
||||
|
|
@ -89,7 +89,7 @@ internal static class Program {
|
|||
photo.Title = title;
|
||||
|
||||
if (jpegFile == string.Empty) {
|
||||
photo.Jpeg = new Byte[1];
|
||||
photo.Jpeg = Properties.Resources.EmptyJpeg;
|
||||
}
|
||||
else if (jpegFile != null) {
|
||||
using MemoryStream jpegStream = new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue