Results 1 to 2 of 2

Thread: Getting a PNG file out of the database, and onto paper.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Queens, NY, NY
    Posts
    6,883

    Default Getting a PNG file out of the database, and onto paper.

    Given a Binary Column in database, with an unencoded BMP file in it it is a trivial exercise to add that image to your report.
    Drag and Drop just works,
    Given a PNG file on disk, giving a function that points to the file location ALSO just works.

    Unfortunately, I have a PNG file in the database, in a MEMO field, (nVarchar(max)) and I can not see how to generate an imagein the report from these, given the way the information is stored.

    What is currently working, is before the report is printed, a function writes the image file as a PNG to disk, and sends the location to the report. It works, but it's really really hokey.

    How am I supposed to do it?

    Here is a sample PNG as text that is in the record

    data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUQAAAB5CAYAAAB BeVgBAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpA AQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAA BRKADAAQAAAABAAAAeQAAAAB2OglpAAAZVklEQVR4Ae1dCdhuV VXGMDUmSUARIa+gKJNSDGJYwAUDwUweBgUlbhiaiAbmkwndUsH kirPSo4RGMUQKOJED4EOgCZWCJiF4wQFIIYZbIhoC1Vrwr8t73 3/vfc4+w3f2+c5az3PuXvNe+z3n2985++zvv2ut5eQIOAKOgCPgC DgCjoAj4AiMCYHlUuz/yXGVHBuOqXCv1RFwBByBLhHYXpLpZGjH5V0m91yOgCPgCIwJgX dIsTYZWjum+r1WR8ARGBkCv1BwvdsVXJuX5gg4AnOIwKMKHpPe FTKVXC/X6rIj4AiMDIGS7xBHBqWX6wg4AmNHoOQJceXYwfX6HQFHYFwIl DwhfnZcUHq1joAjMHYESp4Qvzd2cL1+R8ARGBcCJU+IPx4XlDO tVl8ufVQOffH0t3L8ohxOjoAjMMcIvF7GZvsPtf35HI81Z2i3E y6GUU4O93UEHIEAAo8O6EpRbU6FfJvkKYo6+cVIbb4tKYaO6x2 BkSOgv1+2ux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HV+TU/LmL0hLi1CMCj5XceN6R/2KP/c5Dal0W2FkO3X6mOM4N4UWg/FRJ34g9vsbgGa+6curNdo1u3aUnBGLn76s99edpC0eAL4jCyx2 8vA2lAsYsJX9s8Iq9gBQCsXN3fSrIbfOLAF8Q8zvS7kb2UknFu LH8/u6680w9IqCbnPncqbyqxz49dcEI6OIxXhAFl1pcaRtJRRcQfic WV6UXlEIg9pO1O1NBbptfBPRDjROi/rFVJ0dgSgislMHiZ0D506cEgI91TQTwYvAJcU1sXJp/BM6VIeJnQPkl8z9sH2EMgW3E8Fk5dOuIkyMwNQR42UgnRCdHwB FwBCaJwIUyar5DnCQQYxl0aJPwWGr3Oh2B0hHwO8LSz5DX5wg4 AjNDYH3pye8QZwa3d+QIOAKlI4AT4kGlF+v1OQKOgCPQJwK7Sn L9o7D6Z6+cHAFHwBFwBBwBR8ARcAQcAUfAEXAEHAFHwBFwBBwB R8ARcAQcAUfAEXAEHAFHwBFwBBwBR8ARcAQcAUfAEXAEHAFHwB FwBBwBR8ARcAQcAUfAEXAEHAFHwBFwBBwBR8ARcAQcAUfAEXAE HAFHwBFwBBwBR8ARcAQcAUfAEXAEHAFHwBFwBBwBR8ARcAQcAU fAEXAEHAFHwBFwBBwBR8ARSCDw/62wrqSsIOrzAAAAAElFTkSuQmCC
    and the image
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	4049840040.png 
Views:	19 
Size:	6.5 KB 
ID:	14322  
    Michael Mullan.
    Danes Bridge Enterprises.

    ++++++++++++++++++++++++++++
    There is just today. Tomorrow is a concept
    that is mostly theoretical. -- GM Wylie
    ++++++++++++++++++++++++++++

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •