Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

File busting component

Posted on 2003-03-17
2
Medium Priority
?
198 Views
Last Modified: 2010-05-03
I am looking for a component or code that will allow me to break up a file into 20K blocks(or any size I desire), send them in seperate chunks, and then reassemble the file once it is all there.  I already have the sending part handled, it's just the file breaking down and putting back together that has me road-blocked.  Does anyone know of any good ActiveX component or dll which handles file busting and reassembling?  My method of transfer may drop the connection while sending, so there would have to be a way to pick back up at the most recent block sent.
0
Comment
Question by:dpaul007
2 Comments
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 200 total points
ID: 8152876
Well, at first sight, you need to split the file opening in binary mode and save each chunck separatelly in binary too.
After that, you could reasemble it knowing at wich part of the file you were spliting.
something like this:
You have a file of 2048 Bytes

dim ff() as byte



open "c:\myfile.xxx" for binary as #1 len=1024
   get#1,1,ff
close #1
'
open "c:\split1.xxx" for binary as #1
   put#1,1,ff
close #1
'
open "c:\myfile.xxx" for binary as #1
   get#1,1024,ff
close #1

open "c:\split2.xxx" for binary as #1
   put#1,1,ff
close #1
0
 

Expert Comment

by:CleanupPing
ID: 8532195
Hi dpaul007,
This old question (QID 20553370) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question