Fix image functions on client
This commit is contained in:
@@ -613,7 +613,7 @@ namespace CMS_Client.Browser_Tools
|
||||
bytes = memstream.ToArray();
|
||||
job.metadata.generics.images.Add(new ImageParam()
|
||||
{
|
||||
name = Path.GetFileNameWithoutExtension(entry.Name),
|
||||
name = Path.GetFileName(entry.Name),
|
||||
base64 = "data:image/" + Path.GetExtension(entry.Name).ToLower().TrimStart('.') + ";base64," + Convert.ToBase64String(bytes)
|
||||
});
|
||||
}
|
||||
@@ -730,7 +730,7 @@ namespace CMS_Client.Browser_Tools
|
||||
//Send to Step
|
||||
e.SetReturnValue(JsonConvert.SerializeObject(new ImageParam()
|
||||
{
|
||||
name = Path.GetFileNameWithoutExtension(imageOpenFileDialog.FileName),
|
||||
name = Path.GetFileName(imageOpenFileDialog.FileName),
|
||||
base64 = "data:image/" + Path.GetExtension(newImagePath).ToLower().TrimStart('.') + ";base64," + Convert.ToBase64String(System.IO.File.ReadAllBytes(newImagePath))
|
||||
}));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user