473,408 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Joining files

Hi group,

I have an app that streams files over the network. What I want to be
able to do now is select a folder and stream the entire contents of
that folder over the network. I could simply just loop through each
file and transmit them one at a time but I would rather somehow stream
all the files into a single file and then transmit this one file. Upon
receipt, then "un-stream" all these files. Something similar to the
TAR command on unix. Compression as well would be a plus but I am not
that bothered.

However, my problem is that I am distributing the .exe without any
install. Because of this I cannot use any third party DLL's or
add-ins, so all/any code must be VB and compiled into my .exe

I saw that there is zip library made in C# which is no good because I
cannot add a C# project to my solution, nor include an extra DLL. Does
anyone know if this project was translated to VB? If not, any ideas,
help at all?

TIA,
Hugh

p.s. I am using VB.NET 2003. I read somewhere that .NET 2.0 framework
has a class for this but I am stuck with version 1.1 !

Apr 3 '06 #1
5 1334
Hi,

If you use the sharpziplib you would not have to register the
dll just copy it to the directory with your exe. A setup program would not
be needed.

http://msdn.microsoft.com/msdnmag/is...ipCompression/

Ken
----------------
"Hugh Janus" <my*************@hotmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
Hi group,

I have an app that streams files over the network. What I want to be
able to do now is select a folder and stream the entire contents of
that folder over the network. I could simply just loop through each
file and transmit them one at a time but I would rather somehow stream
all the files into a single file and then transmit this one file. Upon
receipt, then "un-stream" all these files. Something similar to the
TAR command on unix. Compression as well would be a plus but I am not
that bothered.

However, my problem is that I am distributing the .exe without any
install. Because of this I cannot use any third party DLL's or
add-ins, so all/any code must be VB and compiled into my .exe

I saw that there is zip library made in C# which is no good because I
cannot add a C# project to my solution, nor include an extra DLL. Does
anyone know if this project was translated to VB? If not, any ideas,
help at all?

TIA,
Hugh

p.s. I am using VB.NET 2003. I read somewhere that .NET 2.0 framework
has a class for this but I am stuck with version 1.1 !

Apr 3 '06 #2

Ken Tucker [MVP] wrote:
Hi,

If you use the sharpziplib you would not have to register the
dll just copy it to the directory with your exe. A setup program would not
be needed.

http://msdn.microsoft.com/msdnmag/is...ipCompression/

Ken


Thanks Ken, I had originally thought of this but one of the
requirements of the app is that it is all contained in 1 exe and has no
dependencies at all. So that rules sharpziplib out I am afraid.
I am guessing I want to stream the contents of all the files into 1 big
file. And then work out how to get this info back out. Is this even
feasible? I am totally stumped on this problem.

Apr 3 '06 #3
Maybe you could 'read' all the files into one big byte array, then create a
memory stream from this byte array.... just a thought, but watch out for
memory usages.

"Hugh Janus" wrote:
Hi group,

I have an app that streams files over the network. What I want to be
able to do now is select a folder and stream the entire contents of
that folder over the network. I could simply just loop through each
file and transmit them one at a time but I would rather somehow stream
all the files into a single file and then transmit this one file. Upon
receipt, then "un-stream" all these files. Something similar to the
TAR command on unix. Compression as well would be a plus but I am not
that bothered.

However, my problem is that I am distributing the .exe without any
install. Because of this I cannot use any third party DLL's or
add-ins, so all/any code must be VB and compiled into my .exe

I saw that there is zip library made in C# which is no good because I
cannot add a C# project to my solution, nor include an extra DLL. Does
anyone know if this project was translated to VB? If not, any ideas,
help at all?

TIA,
Hugh

p.s. I am using VB.NET 2003. I read somewhere that .NET 2.0 framework
has a class for this but I am stuck with version 1.1 !

Apr 3 '06 #4
Nice name
Apr 3 '06 #5

Microsoft wrote:
Nice name


You too. I bet they made fun of you at school.

Apr 4 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mark | last post by:
Hi all, I have 2 files containing Id numbers and surnames (these files essentially contain the same data) I want to select distinct() and join on id number to return a recordset containing every...
3
by: JHenstay | last post by:
I've been doing quite alot of reading on C++ and classes, however, everything I read just talks about the code itself and not the location of the code. My question is, what if you want to...
9
by: Eric Sabine | last post by:
Can someone give me a practical example of why I would join threads? I am assuming that you would typically join a background thread with the UI thread and not a background to a background, but...
5
by: Paul Czubilinski | last post by:
Hello, I would like to join few pdf files uploaded separetly into my website into one downloable pdf file. Is it possible in php or is it neccessary to download all these files one by one? ...
1
by: sarffi | last post by:
Hi. i m getting a problem regarding joining of xml files of size greater than 1GB in java.the error i mgetting is "out of heap memory space" in java....So,plz suggest me the possible solutions....
7
by: mosscliffe | last post by:
I have 4 text files each approx 50mb. I need to join these into one large text file. I only need to do this very occasionally, as the problem has occurred because of upload limitations. ...
2
by: Supermansteel | last post by:
I am joining these 2 tables together in Access 2003 and can't figure out the exact way of writing this script......Can anyone help? I have the following SQL: SELECT...
4
by: rhino | last post by:
I'm very new to XML and maybe just a touch impatient because I'm going to ask a moderately advanced question even though I'm just learning the basics. I've spent many years working with...
3
sumittyagi
by: sumittyagi | last post by:
Hi All, I am stuck with one tricky situation here. The situation is as follows:- I have two files, both files have two columns - space seperated key value pairs. Now say files are f1 and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.