Click here to Skip to main content
15,880,503 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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

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[^]
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900