Questions tagged [zip]

referring to compressed archive files.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Compressed data over WebService - decompression error

I am getting a compressed JSON file from a WebService and trying to decompress it in front-end using the Javascript library JSZip. Here is the compressed response (which is a valid zip file, ...
1
vote
1answer
23 views

What is the best method to display images on a VisualForce page?

Is it still best to use Static Resources to zip up images to use in a VisualForce page (or elsewhere)? We basically display a table on the page with a small image (a company logo) in each row. ...
0
votes
1answer
46 views

Can you extract csv files from a zipped static resource using lwc or apex?

Im trying to figure out how to extract a file from a static resource. the static resource is zipped and contains a csv file. Im new with lwc, i have some experience with apex but i'm not a master. I'...
4
votes
2answers
244 views

LWC: Import JSON from a zip Static Resource

The platformResourceLoader module only offers loadScript and loadStyle. Is there a way to load JSON files from a zip Static Resource?
1
vote
0answers
75 views

Accessing files containing whitespace from a zip Static Resource in Apex

There is a known issue with zip Static Resources that prevents files with whitespace in their names from being extracted (I suppose the Static Resource web service on SFDC cannot handle whitespaces). ...
1
vote
0answers
78 views

How do I customize the zip file name when downloading multiple files?

I know how to download a single file from salesforce. I just open a new tab with the url /sfc/servlet.shepherd/version/download/068xxxxxxxxxxxxxxx/. Likewise, I know how to download multiple files ...
0
votes
2answers
413 views

Is it possible to create a REST API in salesforce that returns zip file

I want to expose a REST API to the other website. The REST API in salesforce basically needs to query on Opportunity data as well as Files related to Opportunity, zip it and return it. Questions: ...
3
votes
0answers
656 views

When using the /sfc/servlet.shepherd/version/download/<VERSION> url hack to download all related Files, can we rename the zip?

So I've been using the /sfc/servlet.shepherd/version/download/ url method to create a button to download all files related to a record. However I was wondering if there is a way to rename the zip file ...
0
votes
1answer
180 views

Why deploy.zip file does not deploy metadata when archived using java.utils.zip?

I have created deploy folder with all correct metadata definitions. If I compress the folder using java program and try to deploy it using DeploySample java code, get success in console but no ...
3
votes
1answer
2k views

Zipping up many files (10+) for download, from a Custom Lightning Component

We would like to allow a user to download an archive of files, which are stored as ContentDocuments. We tried Zippex, but ran into CPU governor limits when the file count started to get above 10. We ...
0
votes
1answer
21 views

Metadata deplyment with Java

I'm trying to use java tool for deployment and seems I having issue with creating zip file.I wrote function that receive list of files path and build ZIP folder with them. Issue is when I deploy the ...
5
votes
2answers
72 views

Cannot get Unit Test to pass in order to push trigger to production

I'm having difficulties creating a Unit Test for an Apex Trigger to pass so I can push the trigger into production. I'm hoping someone can help me or point me in the right direction to where I'm ...
3
votes
1answer
916 views

Files in zipped static resource return 404 errors after being updated

After saving a change to a file in a zipped static resource, all of the files in that static resource return 404 errors. If the changed files that caused the problem are added to another zipped static ...
1
vote
1answer
1k views

Salesforce PDF download using JSZip

SFDC developer here. I have created a VF page which accepts Account id & displays some information on a VF page in tabular form. I need to make multiple calls to this page with different account ...
4
votes
1answer
865 views

Upload zip file in visualforce page

Can anyone tell me how to upload a zip file in visualforce page? My use case is: I have to upload a zip file which contains 10 pdf files and assign these 10 files to 10 contacts For that how can I do? ...
7
votes
2answers
4k views

How to unzip a zipfile attachment in apex and process each file in the zip attachment

I am trying to unzip a zip file attachment. but, unable to unzip the attachment and process all the internal files in the zip file. I want to do this using an email handler class.