But I guess I was looking for (and maybe also for the BAQreports) is that the thumbnail of the image be able to be a BAQ column…
Like add an image field to the BAQ ? so the images get shown on each line, not by clicking a line and show then the image…(but thanks it is a good start! ) So the reporting could use this as well… (like a report showing customer parts list with their pictures in a dashboard, or printed)
The easy way is to make a subreport that uses a data source that reads from the database directly. You could pass the subreport the image id and have it display the part image. The great thing about this method is it’s a generic subreport that can be reused any place you wanted to display an image like travelers or employee badges.
The other approach is to add a calculated field to the baq and append the image data to the filed in a GetList post process directive. Something like this:
using (var imageSvc = Ice.Assemblies.ServiceRenderer.GetService<Erp.Contracts.ImageSvcContract>(Db))
{
var resultDt = result.Tables["Results"];
foreach (DataRow row in resultDt.Rows)
{
row["Calculated_ImageContent"] = Convert.ToBase64String(imageSvc.GetOriginalImage(row["Image_ImageID"].ToString()));
}
}
Awesome!
Not sure I should go down this rabbit hole but it will be ok for TESTING.
Maybe i’ll work on compressing images before I get started.
Would be ideal for it to search UNC location with client access or store them as files on the server in my case, then I can have them updated automatically as they change.
I didnt read your post yet, but we currently attach PDF’s with UNC link as attachments, and I could DMT those in regardless if the JPG image exists, then have a button click to open it.
If a button can click it, im sure it can open and display OnLoad and I can get what I would like out of it also.
Good point!
UNC looks like it does work as a linked “File Attachment” in 2022.2 Kinetic.
You know anything more specific why it wont work in the future? I might go down this route because i can DMT those in.
Not in the browser, unless you install the Edge Client.
HTTP works with File Attachment links without the Edge Client. With HTTP, images/documents will cache in the browser, and they can be used by other systems other than Kinetic. Images/Documents in the database use more memory on your SQL Server and makes you a “noisy” neighbor in the cloud.