SQL VarBinary Image not loading

  1. My goal:
    to Load image from sqlserver database stored in varbinary field
  2. Issue:
    converting to base64 is a pain, and the image shows as broken link
  3. Steps I've taken to troubleshoot:
    converting to string, converting to base64 in sql statement, tried flat text in the image URL field etc.
  4. Additional info: (Cloud or Self-hosted, Screenshots)

    the varbinary looks like this, so something is changing.
    image

actually I think I might have gotten it working. at least for PDF. I have to see if other types will exist in the source and what that would look like.

I'll update with what I did.