update 20250727
This commit is contained in:
@@ -111,10 +111,13 @@ namespace API_NetFramework.Controllers
|
||||
byte[] imageBytes = m.ToArray();
|
||||
imgnew.Dispose();
|
||||
m.Dispose();
|
||||
//yte[] imageArray = System.IO.File.ReadAllBytes(newfilename);
|
||||
// string base64ImageRepresentation = Convert.ToBase64String(imageArray);
|
||||
System.IO.File.Delete(newfilename);
|
||||
iimg.Dispose();
|
||||
iimg = null;
|
||||
imgnew = null;
|
||||
//return Ok(base64ImageRepresentation);
|
||||
return Ok(Convert.ToBase64String(imageBytes));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user