How to put file in file? [Not Compress]
-
I need to provide my self a path for a file to save but also I try to create a new file type. Like this; NewFile.slx --Config.xml --Data.ktt Above you see, NewFile.slx contains two files, but for making .ktt file I give a component a path and it saves the file on that path. So path should be like this "C:\NewFile.slx\Data.ktt" I saw something like that on a software; file.dll?type=something it was giving you some jpeg file. How could i do that?
-
I need to provide my self a path for a file to save but also I try to create a new file type. Like this; NewFile.slx --Config.xml --Data.ktt Above you see, NewFile.slx contains two files, but for making .ktt file I give a component a path and it saves the file on that path. So path should be like this "C:\NewFile.slx\Data.ktt" I saw something like that on a software; file.dll?type=something it was giving you some jpeg file. How could i do that?
You might want to do some research on "Alternate file streams" - But be warned: They only work on NTFS drives.
*Developer Day Scotland - Free community conference Delegate Registration Open
-
You might want to do some research on "Alternate file streams" - But be warned: They only work on NTFS drives.
*Developer Day Scotland - Free community conference Delegate Registration Open
-
thank you for the answer but as you have said, it's just for ntfs. i need something like folder but hidden. something to present with a path address
How about using zip without compression? You can write your files to the zip file, and you can change the extension, so WinZip and other compression programs won't recognize it.
My advice is free, and you may get what you paid for.
-
How about using zip without compression? You can write your files to the zip file, and you can change the extension, so WinZip and other compression programs won't recognize it.
My advice is free, and you may get what you paid for.
But my custom files could be over 200 mb and if i go with the zip stuff, i have to create my data file to temp location then i gotta zip it. this means 400 mb hdd space instead of 200 mb. if i could give a path like this C:\file.zipx\data.ktt file will be directly saved under that.
-
But my custom files could be over 200 mb and if i go with the zip stuff, i have to create my data file to temp location then i gotta zip it. this means 400 mb hdd space instead of 200 mb. if i could give a path like this C:\file.zipx\data.ktt file will be directly saved under that.
Stylus VB wrote:
i have to create my data file to temp location then i gotta zip it. this means 400 mb hdd space instead of 200 mb. if i could give a path like this C:\file.zipx\data.ktt file will be directly saved under that.
Let us assume for a moment that you managed to do what you are trying to do with a simple
File.Move("C:\Data.ktt", "C:\YourContainerFile.cnt\Data.ktt")
. Here is what would actually happen: 1. C:\Data.ktt (disc usage 200 mb) 2. Copying Data.ktt to C:\YourContainerFile.cnt\ (disc usage 400 mb) 3. Deleting C:\Data.ktt (disc usage 200 mb again.) You can create the zip file at run time, and write to it at run time. In the end you would use your system memory and hdd space to the exact same extent. Think about it, what you are trying to accomplish in the end is a file containing another file. Or in other words, you want a folder that acts like a file. That is exactly what a zip file is.My advice is free, and you may get what you paid for.