Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Display no image binary data

Display no image binary data

Scheduled Pinned Locked Moved ASP.NET
databasesql-serversysadminquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    c ivan
    wrote on last edited by
    #1

    How can i display (without Save/Open dialog) .doc file, stored in sql server 2005 like binary data (column type image), on .aspx page. :-D

    P 1 Reply Last reply
    0
    • C c ivan

      How can i display (without Save/Open dialog) .doc file, stored in sql server 2005 like binary data (column type image), on .aspx page. :-D

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Set the content type to application/msword on the response object.

      Deja View - the feeling that you've seen this post before.

      C 1 Reply Last reply
      0
      • P Pete OHanlon

        Set the content type to application/msword on the response object.

        Deja View - the feeling that you've seen this post before.

        C Offline
        C Offline
        c ivan
        wrote on last edited by
        #3

        Yes i did. But i got Save/Open dialog instead to write content on page. I do not need to download .doc file, i need to display them on page.

        G 1 Reply Last reply
        0
        • C c ivan

          Yes i did. But i got Save/Open dialog instead to write content on page. I do not need to download .doc file, i need to display them on page.

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          A word document is only displayed inside the browser if the browser is set up display it that way. It's still not showed on the page, though. If you really want to show it on the page, you have to convert it some format that can be displayed in a web page, like for example an image.

          --- single minded; short sighted; long gone;

          C 1 Reply Last reply
          0
          • G Guffa

            A word document is only displayed inside the browser if the browser is set up display it that way. It's still not showed on the page, though. If you really want to show it on the page, you have to convert it some format that can be displayed in a web page, like for example an image.

            --- single minded; short sighted; long gone;

            C Offline
            C Offline
            c ivan
            wrote on last edited by
            #5

            Tnx Guffa. That's what i need. Does someone know how to convert .doc database binary data into image? I try set content type to application/image but it's not work.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups