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 can i store the images to sql server database from asp.net webpages(using vbscript only)

How can i store the images to sql server database from asp.net webpages(using vbscript only)

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-netsql-serversysadmin
5 Posts 2 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.
  • U Offline
    U Offline
    User 1714915
    wrote on last edited by
    #1

    hi for opening the image file location in our disk, i put the file field control.. into the webform. plz tell the procedure to store the image from that file field control to the sql server database. thank you

    T 1 Reply Last reply
    0
    • U User 1714915

      hi for opening the image file location in our disk, i put the file field control.. into the webform. plz tell the procedure to store the image from that file field control to the sql server database. thank you

      T Offline
      T Offline
      Timcyspet
      wrote on last edited by
      #2

      Hi there is two method to show image dynamiclly in the web screen 1. storing filepath in the database upload the file into a dir (image) when u want show the file use following code ../image/<%=filename%> 2. storing the image as image datatype image Variable-length binary data from 0 through 231-1 (2,147,483,647) bytes. bye timcyspet

      U 1 Reply Last reply
      0
      • T Timcyspet

        Hi there is two method to show image dynamiclly in the web screen 1. storing filepath in the database upload the file into a dir (image) when u want show the file use following code ../image/<%=filename%> 2. storing the image as image datatype image Variable-length binary data from 0 through 231-1 (2,147,483,647) bytes. bye timcyspet

        U Offline
        U Offline
        User 1714915
        wrote on last edited by
        #3

        hi i have created one stored procedure for this, the code is below, before that i have created the table create table save_image ( im image null ) create proc sav @img image as begin insert into save_image (im) values (@img) end now, what is code for storing the image to sqlserver database (as a image data type).

        T 2 Replies Last reply
        0
        • U User 1714915

          hi i have created one stored procedure for this, the code is below, before that i have created the table create table save_image ( im image null ) create proc sav @img image as begin insert into save_image (im) values (@img) end now, what is code for storing the image to sqlserver database (as a image data type).

          T Offline
          T Offline
          Timcyspet
          wrote on last edited by
          #4

          Hi open the file in binary stream store it in a binarystream pass as a parameter into stored proc i think this will do if u need exact code, feel free to reply bye timcyspet

          1 Reply Last reply
          0
          • U User 1714915

            hi i have created one stored procedure for this, the code is below, before that i have created the table create table save_image ( im image null ) create proc sav @img image as begin insert into save_image (im) values (@img) end now, what is code for storing the image to sqlserver database (as a image data type).

            T Offline
            T Offline
            Timcyspet
            wrote on last edited by
            #5

            Hi open the file in binary stream store it in a binarystream pass as a parameter into stored proc i think this will do if u need exact code, feel free to reply bye timcyspet

            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