Tampilkan postingan dengan label zip. Tampilkan semua postingan
Tampilkan postingan dengan label zip. Tampilkan semua postingan

Rabu, 04 Desember 2013

Action Result for MVC Export CSV and Zip (.NET)

In MVC the ActionResult is the core component of returning data. I have made three usual ActionResult that makes you fast returning data:
1. ActionResult_Zip – you can add many files and returns a Zip file with those files compressed
2. ActionResult_CSVDataTable : takes a DataTable as argument and returns a csv from this datatable
3. ActionResult_CSVObject : takes an IEnumerable(List, array) of objects of same type and returns the csv from the properties of the type and values of the IEnumerable objects.

Files Backup Pro Class (Miscellaneous)

Files Backup Pro Class



  • backup your files as ZIP archive;

  • upload backup to FTP server;

  • send backup as email attachment;

  • upload to Google Drive, Dropbox, Box, SkyDrive and other cloud using WebDAV;

  • send to server using PUTS HTTP;

  • exclusion filter for files and folders;

  • use CRON to automate backup your data;

  • easy installation on any server;

  • examples of both functions are included;

  • fully documented.


Changelog


Version 1.1

  • Minor bug fixes


Version 1.0

  • Released

MySQL Backup Pro Class (Database Abstractions)

MySQL Backup Pro Class




  • backup your MySQL database as
    SQL
    ,
    CSV
    or
    XML
    ;


  • upload backup to
    FTP
    server;


  • send backup as
    email
    attachment;


  • upload to
    Google Drive
    ,
    Dropbox
    ,
    Box
    ,
    SkyDrive
    and other cloud using
    WebDAV
    ;


  • send to server using
    PUTS HTTP;

  • Can pack as ZIP archive;


  • support
    MySQL, MySQLi and PDO
    driver;

  • use CRON to automate backup your data;

  • easy installation on any server;

  • examples of both functions are included;


  • fully documented.


Examples


FILE

Save backup on server as file

Backup::init($params)->as_sql()->save($path);

MAIL

Send backup as attachment on email

Backup::init($params)->as_sql()->mail('your_emal@mail.com');

FTP

Upload backup to FTP server

Backup::init($params)->as_sql()->ftp($ftp_params);

HTTP

Upload backup to HTTP server using method PUTS

Backup::init($params)->as_sql()->http($http_params);

WebDAV (Cloud)


Upload backup to cloud using WebDAV

Backup::init($params)->as_sql()->webdav($webdav_params);


For more examlpes please read description.


Changelog


Version 1.3

  • Minor bug fixes


Version 1.2

  • Add ZIP method


Version 1.1

  • Add PDO driver


Version 1.0

  • Released