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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Does images will be compressed while storing in database

Does images will be compressed while storing in database

Scheduled Pinned Locked Moved ASP.NET
databasequestionsql-serversysadmin
5 Posts 5 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.
  • R Offline
    R Offline
    rubobby
    wrote on last edited by
    #1

    Hi all! I had a doubt :zzz: , Does images will be compressed while storing images in to the database? iam using file upload control to upload the images into the database. while uploading iam converting the image into byte streem. AND ALSO TELL ME WHAT IS THE COMPRESSION RATIO(IF COMPRESSED). AND TELL ME WHAT IS THE DEFAULT IMAGE SIZE IN SQL SERVER? PLEASE GIVE ME THE INFORMATION.

    raj

    E S G 3 Replies Last reply
    0
    • R rubobby

      Hi all! I had a doubt :zzz: , Does images will be compressed while storing images in to the database? iam using file upload control to upload the images into the database. while uploading iam converting the image into byte streem. AND ALSO TELL ME WHAT IS THE COMPRESSION RATIO(IF COMPRESSED). AND TELL ME WHAT IS THE DEFAULT IMAGE SIZE IN SQL SERVER? PLEASE GIVE ME THE INFORMATION.

      raj

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      If I were you, I would store the file location of the images rather then the actual images in the datavbase. You will very quickly find that your database size balloons. Im not sure if it compresses them, my guess is they wont compress

      We are not a Code Charity

      A 1 Reply Last reply
      0
      • E eyeseetee

        If I were you, I would store the file location of the images rather then the actual images in the datavbase. You will very quickly find that your database size balloons. Im not sure if it compresses them, my guess is they wont compress

        We are not a Code Charity

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

        .netman wrote:

        If I were you, I would store the file location of the images rather then the actual images in the datavbase

        Definately the best way. Also saves the work of getting them back out of the database and displaying them.

        Bob Ashfield Consultants Ltd

        1 Reply Last reply
        0
        • R rubobby

          Hi all! I had a doubt :zzz: , Does images will be compressed while storing images in to the database? iam using file upload control to upload the images into the database. while uploading iam converting the image into byte streem. AND ALSO TELL ME WHAT IS THE COMPRESSION RATIO(IF COMPRESSED). AND TELL ME WHAT IS THE DEFAULT IMAGE SIZE IN SQL SERVER? PLEASE GIVE ME THE INFORMATION.

          raj

          S Offline
          S Offline
          SteveNY
          wrote on last edited by
          #4

          No they don't. You would have to run your own compression method on the byte stream before stored into the db and reverse for retrieving them.

          1 Reply Last reply
          0
          • R rubobby

            Hi all! I had a doubt :zzz: , Does images will be compressed while storing images in to the database? iam using file upload control to upload the images into the database. while uploading iam converting the image into byte streem. AND ALSO TELL ME WHAT IS THE COMPRESSION RATIO(IF COMPRESSED). AND TELL ME WHAT IS THE DEFAULT IMAGE SIZE IN SQL SERVER? PLEASE GIVE ME THE INFORMATION.

            raj

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

            rubobby wrote:

            Does images will be compressed while storing images in to the database?

            The data that you store in the database will not be compressed, but for most common image formats (like jpeg, gif and png) the data is already compressed so you don't need any further compression.

            rubobby wrote:

            PLEASE GIVE ME THE INFORMATION.

            Stop screaming.

            Despite everything, the person most likely to be fooling you next is yourself.

            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