Search
New Code
AnyGantt JS Gantt Charts 8.0.0
Hex Comparison 5.12
SecureBridge 8.1
Hotelline PMS 1.0
TeeBI for RAD Studio Suite 2017
AnyStock Stock and Financial JS Charts 8.0.0
Entrepreneur News Portal 1.0.2
Advanced MLM Software 1.2
JavaScript Pop-up Box - free scripts 1.0
wolfSSL 3.12.0
Bytescout PDF SDK 1.6.0.207
Fundraiser by NCrypted Websites 1.0
Bytescout PDF To HTML SDK 8.6.0.2911
iTech StockPhoto Script 2.03
AnyMap JS Maps 8.0.0
Top Code
Jango Clone Script 1.0
Get Random Record Based on Weight 1.0.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Sine Wave Using JavaFX 1.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
Code Listing by alex lavoro.propio

Code 1-1 of 1   






Banana limits string objects to 640k so sending a large file requires to break it into many small chunks. Twisted provide a helper class to do this: twisted.spread.pb.FilePager. I modified on recipe 457670: "How to use twisted pb pager" to demonstrate the usage of FilePager. getFile1() is similar to getIt() in recipe 457670. getFile2() uses the utility function in twisted.spread.pb.util.