Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET SQL-Server
Hi Friends,,,,,
 
Is it possible to Compress the images and save it to database and Decompress it and display it back from Database......?
 

As i m saving the images the database sizes goes on increasing. So i want to Comprees it...
 
Please help me in this regard...
 
ASP.NET as front end and SQL as Database
Posted 8-Nov-12 19:39pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Instead compression/decompression you can use file stream.
 
"SQL Server has a file stream data type. This data type allows users to store content on the disk instead of the database as a real file." 
Refer below link
 
http://technet.microsoft.com/en-us/library/bb933993(v=sql.105).aspx[^]
 
http://www.simple-talk.com/sql/learn-sql-server/an-introduction-to-sql-server-filestream/[^]
 
http://www.aspsnippets.com/articles/Save-and-Retrieve-Files-from-SQL-Server-Database-using-ASP.Net.aspx[^]
 
How Do I: Use SQL File Stream[^]
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 9 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100