All,

In order to save very large strings (fully-formatted HTML) in a mysql 
column, I have run it through java.util.zip's GZIP classes.

The result of this process is a byte[] of variable length.

I have as yet been unsuccessful at saving and retrieving this byte[].

(My column is currently a blob. I am converting each byte to a char and 
then adding the char to a string and inserting the string to the blob. I am 
in no way committed to the blob type, and would actually like to avoid the 
byte[] <-> string translation if possible.)

At any rate, If anyone has any good strategies for storing a byte[] in a 
mysql column, please forward those ideas.

Live happy, code clean,

David T. MacKenzie
eSpecto, Inc.
o.  (513) 352-0020
f.  (513) 352-0040
[EMAIL PROTECTED]
http://www.eSpecto.com



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to