Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NETSQL-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 - 18:39


2 solutions

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  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 263
1 Sergey Alexandrovich Kryukov 254
2 Maciej Los 161
3 Tadit Dash 110
4 Richard MacCutchan 95
0 Sergey Alexandrovich Kryukov 10,264
1 OriginalGriff 7,917
2 CPallini 4,181
3 Rohan Leuva 3,522
4 Maciej Los 3,125


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 9 Nov 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid