Fix path error
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user