Item image in Inventry Items

Problem: Custom Field images wont render in PDF if saved in folder and referenced as proposed above. Note: I have found a post with same folder/image storage and reference ,Suggestion - Best use case for Folders tab and Image custom field

Fix: Implement Image upload and Base-64 encoding into custom image field. This will be fast and efficent and will work for both desktop & server importanty fix issues with printing, pdf and web views

Base 64 Encoding is straightforward, just need to automatically limit file size and resolution prior to conversion:

     private string CreateBase64Image(byte[] fileBytes)
     {
           Image streamImage;
  
           using (MemoryStream ms = new MemoryStream(fileBytes))
           {
           /* Create a new image, saved as a scaled version of the original */
           streamImage = ScaleImage(Image.FromStream(ms));
           }
           using (MemoryStream ms = new MemoryStream())
           {
           /* Convert this image back to a base64 string */
           streamImage.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
           return Convert.ToBase64String(ms.ToArray());
           }
     }

`