Added OriginPosition
Fixed fanuc TT & Minorfixes
This commit is contained in:
@@ -131,12 +131,13 @@ namespace Step.Utils
|
||||
|
||||
public static string FindImageBase64String(string directoryPath, string imageName)
|
||||
{
|
||||
string fileName = Path.GetFileNameWithoutExtension(imageName);
|
||||
foreach (string ext in VALID_IMAGE_EXTENSIONS)
|
||||
{
|
||||
if (File.Exists(directoryPath + "\\" + imageName + ext))
|
||||
if (File.Exists(directoryPath + "\\" + fileName + ext))
|
||||
{
|
||||
// Convert image to a base 64 string
|
||||
return "data:image/" + ext + ";base64," + Convert.ToBase64String(File.ReadAllBytes(directoryPath + "\\" + imageName + ext));
|
||||
return "data:image/" + ext + ";base64," + Convert.ToBase64String(File.ReadAllBytes(directoryPath + "\\" + fileName + ext));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user