Fix path error

This commit is contained in:
Lucio Maranta
2019-01-11 15:15:50 +01:00
parent eaed853391
commit 4146b49856
+1 -1
View File
@@ -192,7 +192,7 @@ namespace Step.NC
// Set image base 64 string
foreach (string ext in VALID_IMAGE_EXTENSIONS)
{
string imagePath = IMAGES_PATH + "/" + fileInfo.Name + ext;
string imagePath = PART_PRG_IMAGES + "/" + fileInfo.Name + ext;
if (File.Exists(imagePath))
{
fileInfo.PreviewBase64 = "data:image/" + ext + ";base64," + Convert.ToBase64String(File.ReadAllBytes(imagePath));