?
Solved

File busting component

Posted on 2003-03-17
2
Medium Priority
?
188 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

770 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