Practical Session With Ionic zip

Assalamualaykum Wr Br…In my previous blog I summarized the Ionic zip package. Today we xplore the Practical session with it. Design your HTML page as shown below using Visual Studio 2010.
compress_practise
At first You will select the file using File Upload Control then click the Save Button to upload file successfully. Once file uploads, Message is displayed quoting Successfully Uploaded. In Below labels FileName is Displayed With its Initial size. Now as you Click the Compress Button the uploaded file is Compressed and its size is displayed in label. Let us experience the execution first,then traverse the code for better understanding.
compress_op
Select the file by clicking the Browse Button then click SaveButton which displays the message as shown below:
compress_op1
Now Click the Compress Button Whose output is shown below as:
compress_op2
Code which demonstrates these two behaviors is shown below:
code_compress
The only thing we need to do is just create an object of ZipFile class then using dot operator access the AddFile method where need to pass the location of the File on the Hard Drive and also finally Save method to save the compressed file to the location specified as string to method. Thats all for today…We would be continuing it further in later sessions…Till Then Have a Great Day..
Jazakallah Khair
Assalamualaykum Wr Br…:)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s