Ticket #669 (closed: fixed)
Allow file compression via web service
| Reported by: | fredrik | Owned by: | fredrik |
|---|---|---|---|
| Milestone: | Proteios SE 2.12.0 | Keywords: | |
| Cc: |
Description
Files can now be stored gzipped on the server. It should be possible to upload a file via web services to the server and have it zipped, as can be done using the GUI.
Change History
comment:1 Changed 23 months ago by gregory
- Status changed from new to closed
- Resolution set to wontfix
comment:2 Changed 23 months ago by fredrik
- Status changed from closed to reopened
- Resolution wontfix deleted
Is this working? It works for external files, but local files will have things like size set upon upload. Will it work to create a new file using PUT, set compressed=true, upload the gzipped file using PUT? Will it still be considered compressed? Testing needed.
comment:3 Changed 22 months ago by fredrik
Answer is no, but it could work with this short fix or similar:
Add att row 648 in Service to
boolean compress=false;
if (file.getCompressed()==true) compress=true;
OutputStream? os = file.getUploadStream(false, compress, false);

This feature adds to the complexity of proteios. Zip the file before uploading it.