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. How to DownLoad a file of any format(like .pdf, .doc etc.) which is stored in database in byte format

How to DownLoad a file of any format(like .pdf, .doc etc.) which is stored in database in byte format

Scheduled Pinned Locked Moved ASP.NET
databasetutorial
5 Posts 3 Posters 1 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.
  • A Offline
    A Offline
    Amit Amit Amit
    wrote on last edited by
    #1

    hi all How to DownLoad a file of any format(like .pdf, .doc etc.) which is stored in database in byte format thanks in advance...

    Amit Metkar 3i-infotech, Mumbai.

    V P 2 Replies Last reply
    0
    • A Amit Amit Amit

      hi all How to DownLoad a file of any format(like .pdf, .doc etc.) which is stored in database in byte format thanks in advance...

      Amit Metkar 3i-infotech, Mumbai.

      V Offline
      V Offline
      Venkatesh Mookkan
      wrote on last edited by
      #2

      Simple. Get the bytes from the database, and save it as a file with proper file extension.

      [Venkatesh Mookkan] My: Website | Yahoo Group | Blog Spot

      A 2 Replies Last reply
      0
      • V Venkatesh Mookkan

        Simple. Get the bytes from the database, and save it as a file with proper file extension.

        [Venkatesh Mookkan] My: Website | Yahoo Group | Blog Spot

        A Offline
        A Offline
        Amit Amit Amit
        wrote on last edited by
        #3

        but how do i....? i dont know the file format... thanx for the reply..

        Amit Metkar 3i-infotech, Mumbai.

        1 Reply Last reply
        0
        • V Venkatesh Mookkan

          Simple. Get the bytes from the database, and save it as a file with proper file extension.

          [Venkatesh Mookkan] My: Website | Yahoo Group | Blog Spot

          A Offline
          A Offline
          Amit Amit Amit
          wrote on last edited by
          #4

          Thanks a lot...

          Amit Metkar 3i-infotech, Mumbai.

          1 Reply Last reply
          0
          • A Amit Amit Amit

            hi all How to DownLoad a file of any format(like .pdf, .doc etc.) which is stored in database in byte format thanks in advance...

            Amit Metkar 3i-infotech, Mumbai.

            P Offline
            P Offline
            Pritish
            wrote on last edited by
            #5

            Software Development How to Download any file from ASP.NET You know, some formats (txt, gif etc.) will be shown on the browser rather than downloading when we try. Below is the script which will help you to download any file. <!--[if !supportLineBreakNewLine]--> <!--[endif]--> Response.Clear(); Response.AddHeader(“Content-disposition”, “attachment; filename=”); Response.WriteFile(“C:\”); Response.End();

            modified on Thursday, February 21, 2008 1:27 PM

            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