By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,118 Members | 1,134 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,118 IT Pros & Developers. It's quick & easy.

PHP Storing compressed data in mssql image field

P: n/a
Hello all,

I am trying to store a large string representing a RTF document through PHP
in a MS SQL Server database. To gain diskspace i want to compress that
string.

My code looks like this:

str_replace("'","''",addslashes(gzcompress($RTF1)) )

The insert succeeds but the problem occurs when i try to retrieve the data
form the database and when i try to transform it to the original string, i
then use:

$RTFdecompressed = gzuncompress(stripslashes(str_replace("''","'",$RT F)));

But this does not work ok....

Can someone have any suggestions please?

Marcel

Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.