Post Closed
370
Views
12
Comments
Solved
[BigZip] How do I GET ZIP BINARY so I can attach it?
bigzip
Web icon
Forge asset by Alfaro
Application Type
Traditional Web

Greetings,

As you can see in my screenshot, I created the zip and added file to it and saved, but how do I GET ZIP BINARY so I can attach it?


Thanks

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

Hi,

From the screenshot you shared, I cannot see how the local variable BinaryData gets its content. That probably explains that you see the zipfile is empty.

The ZipCreate/ZipSave already create a file, stored at the ZipCreate.FilePathCreated.

You need to use the FileSystem.File_ReadBinary method to get the file from that path, and then use File.ReadBinary.Content  as the input for your AttachFile action.

Regards,

Daniel

2019-08-31 06-59-55
YS

Thanks! Works! Great plugin!

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi,

You need to retrieve the ZIP file from disk, and then use the result binary on the FilelContent of the Email widget.

You can use: https://www.outsystems.com/forge/component-overview/68/filesystem

Alternatively you could use the OutSystems ZipAPI, that doesn't require additional Forge components, to fulfill the job.

Regards,

Daniel

2019-08-31 06-59-55
YS

Thanks! Am I using the wrong FileSystem action? The sent zip is empty.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

Hi,

From the screenshot you shared, I cannot see how the local variable BinaryData gets its content. That probably explains that you see the zipfile is empty.

The ZipCreate/ZipSave already create a file, stored at the ZipCreate.FilePathCreated.

You need to use the FileSystem.File_ReadBinary method to get the file from that path, and then use File.ReadBinary.Content  as the input for your AttachFile action.

Regards,

Daniel

2019-08-31 06-59-55
YS

Thanks! Works! Great plugin!

2019-08-31 06-59-55
YS

Final:

UserImage.jpg
Asha Burkul

Hi,

Can anyone please provide working traditional web app for BigZip and send it to email as attachment?

My requirement is same like this and i am new to outsystems so it will be really helpful to have working app for reference.


Thanks,

Ash

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Asha,

Since YS provided screen shots, you can already see how this could be handled?

That said, do you really need BigZip? BigZip is especially for handling very large ZIP archives (100MiB or larger), and those can't typically be e-mailed because of their size. You should consider using the normal Zip Extension that comes with the Platform, if you want to manipulate ZIP archives that can be send by e-mail.

UserImage.jpg
Asha Burkul

Hi kilian,

My requirement is to send one compressed folder Inside that there will be total 50 folders and each folder will contain documents which can be of any size like 2MB or more than that.

So can u recommend which one is good to use Big zip or normal zip? Also it will be good if u can send normal zip extension example.

Thanks,

Asha

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

With e-mail there's typically a limit of around 10-20 MiB per e-mail, so I'd advise you to use the normal Zip Extension, not BigZip, as it will be easier and faster. As for an example of that, I'd advise you to check the documentation, it's not that complicated, but if you need some pointers, please start a new topic in the general forum.

UserImage.jpg
Asha Burkul

Hi Kilian,

Thanks for reply.. I will check documentation.

UserImage.jpg
Asha Burkul

Can you please send me documentation link of ZIP?

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Asha,

I'm very surprised by this, but it seems there isn't any documentation :(. But please start a new topic for this, as it's off-topic for this one. I'll close this topic now.