tag:blogger.com,1999:blog-4129346287195722005.post7341072469763021917..comments2024-03-10T22:04:19.953-07:00Comments on ThinkTibits!: Create ZIP / TAR / .GZ Files in PeopleCode ExampleAnonymoushttp://www.blogger.com/profile/07717408059667602415noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-4129346287195722005.post-34185553942395796592021-07-22T04:37:46.920-07:002021-07-22T04:37:46.920-07:00Hi,
I am able to compress the file using above co...Hi,<br /><br />I am able to compress the file using above code. However, it truncates last 1 KB of data from the file in zipped folder.<br /><br />Is it something to do with buffer size:<br />Local JavaObject &filebuffer = CreateJavaArray("byte[]", 1024);<br /><br />Regards,<br />SwatiAnonymoushttps://www.blogger.com/profile/05959552471461864938noreply@blogger.comtag:blogger.com,1999:blog-4129346287195722005.post-79044208471937937782019-10-08T03:43:22.479-07:002019-10-08T03:43:22.479-07:00when you create your "ZipEntry", create ...when you create your "ZipEntry", create with only the file name, not with full file path. Reference full file path only for "FileInputStream". Anonymoushttps://www.blogger.com/profile/08663342261150319790noreply@blogger.comtag:blogger.com,1999:blog-4129346287195722005.post-80963344613246816652018-02-13T00:13:11.547-08:002018-02-13T00:13:11.547-08:00Hi - were you able to resolve the eliminate the ex...Hi - were you able to resolve the eliminate the extra folders that come when you unzip it?Sharonhttps://www.blogger.com/profile/06351160595333910884noreply@blogger.comtag:blogger.com,1999:blog-4129346287195722005.post-79230218198725808482016-05-23T15:33:56.542-07:002016-05-23T15:33:56.542-07:00There is a way to eliminate the path of the files ...There is a way to eliminate the path of the files inside the zip? I have a lot of files *.txt in the path: \PeopleSoft\Dir1\dir2\Dir3 and I only want to archive/créate the zip file but not store the full path of the txt files.ChiDONEthttps://www.blogger.com/profile/15864892513797114414noreply@blogger.com