The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Compressing Files To Zip Format Onto Database
We currently have files that members upload which is parsed and then put into their post. The file itself is then supplied in the post as a link for those that want to grab it. The only drawback is that the file is in raw format and a bit large. These file when compressed are substantially smaller in size. The problem is we dont know as of yet how to compress the file as like a zip or rar into the database so that it can save space and be a quicker grab for those that want it. Any info that could point us in the right direction to do this would be great.
Thanks. |
#2
|
||||
|
||||
Are you speking of the standard attachments system?
|
#3
|
|||
|
|||
All that you could gain is a bit smaller database (or filesystem depending on storage method). When a member downloads an attachment it is already automagically compressed i think.
|
#4
|
||||
|
||||
automagically ... nice word
Btw: It doesn't seem like attachments get compressed when serving them to the Client. |
#5
|
|||
|
|||
The files were dealing with can be around 2mb on average although if compressed theyre around 25KB which is a huge difference for the database and bandwidth also and for those grabbing them when there are numerous files. Im just looking for any way to compress the files prior to being placed in the databse. Any info would be great...
|
#6
|
|||
|
|||
You could hack into the attachment system and use a compression routine on them, it might even be possible with a plugin.
Will maybe look at it monday, if nobody else provided a solution. |
#7
|
||||
|
||||
Upload class_createzip.php in Direcotry includes, import the product XML.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|