o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Add data to binary file -

I would like to add some data to a binary file and then later strip the data from a binary file at a later date.

What I am thinking is to take a file(Zip, Word, excel, or txt) and take the name of the file and add it to the file or append to the file. Then I plan on encrypting the file and renaming the resulting encrptyed file to something.encrpt. Thus in affect hiding the name of the encrptyed file as well as it's data.

Anyone have a starting point on doing something like this?

thanks,

Dean

 

Binary file edition problems -
I opened some binary file (for example icon) as BINARY and the new file as binary too. I used put 2,,input(lof(1),1), but I found, that this method adds 4 charactets before the file's data (this makes the file unusable). I've tried to use mid or right functions, but with same results.


Add data to binary file -
I would like to add some data to a binary file and then later strip the data from a binary file at a later date. What I am thinking is to take a file(Zip, Word, excel, or txt) and take the name of the file and add it to the file or append to the file. Then I plan on encrypting the


saving binary file... -
Im using the winsock control to build a simple FTP-program. I know how to download a file in ASCII from the server. But what about binary files, such as images? I've tried to just get the data and store it into a new file...but it doesn't work...I guess that I should do some rea


[2005] Bytes to binary -
Hi, I'm saving data using WriteAllBytes Method, so the output file be in binary format. Then i'm using FileOpen with OpenMode.Binary, FileGet and FilePut to to edit the data. So, what i will like to do is, instead of having to save the file and then open it in order to have it in bina


How to load binary data into a Textbox -
When I open a binary file and load it into Notepad the file is displayed as a gobbley-goop character string of binary data. Now I know this is not the real binary but a character representation of the binary data. How can I do the same thing in VB using a Textbox control?


binary string data -
is there a specific way to save binary data? i can send myself the binary string data from a .bmp file. but everytime i write the string data to the file using : filename = "bitmap.bmp" open filename for binary as #1 put #1, 1, file close i will recieve an INVALID .


- PictureBox to Binary file -
hi there, I wanna know how to read picture file and write it to some binary file. actually i'm a newbee to read/write a binary file. say i'm having a picturebox and an command button, on click of command btn i hv to save picturebox file to a binary file. how to do reading it??, what


Binary wordpad == URGENT -
Guys, I am not sure whether this question exactly belongs to this forum, but I would very much appreciate it if anyone can answer the question. I have a program that writes its output as a binary file. I opened the file in wordpad. I was not able to read anything. Then I saved t


Converting text files to binary -
Hi, Can anyone give me some sample of code of a a VB program converts a text file into a binary file. More specifically what I want to do is to reading the binary file is the read it in Matlab. I suppose I need to put some headers onto the binary file to make it a a true Matlab file


How to read 2 bytes of binary data -
Hi! Hope someone knows this. I have file that consists of binary data. The file has a field of data values that spans 2 bytes long. I am trying to read in the 2 bytes of data into a variable to retrieve the data back in decimal value. However, i only have integer and byte datatypes.


reading binary data... -
Is there a function in visual basic 6.0 that would allow me to read binary data from the middle of a binary data file with known starting and ending file length points, without having to start from the beginning? I am currently using the binary 'Input(1, #1)' function, however I must


Updating Data in Binary File -
hello everyone i am making a quiz in vb wherein i am reading questions from a binary file.also i am writing the question no and the option selected by the user in a seperate binary file.for eg Q1,4,Q2,5 now if the user changes the answer of q2 to 3 then i want that the file


Binary file creation -
I've been going through several tutorials on different methods of File Access, Text, Random, Binary, etc. I'm wanting to save the users passwords in a file that someone can't easily view. I've also seen several different methods on encryption. My first thought was that binary mode w


API GURU NEEDED -File extension from Class Name -
Heres what I am trying to do. I am trying to store files in an access database by allowing drag and drop into an OLE container field. With the help of Beacon (from this site) I can take any file dropped in OLE container, and store it as long binary data in my access database. The ole c


binary data with api -
i've tried all the code snippets regarding accessing a file through api, but none of them seem to work for me. some end up telling me the file doesn't exist and some tell me it's reached te end of te file. could someone please show me an example of how to read binary data from a file?


writing to binary files -
I want to write data to a file but i want it to be written as binary data so that no one could easily open the file and edit it. The file will actually contain candidate names and ballot numbers so I prefer such data not to be in regular readable format. Sample code anyone? An


Reading from Binary Stream -
Hi, I've got some code that works exactly as intended, but is too slow for the wide-scale purposes I need. Here's an excerpt: _________________________________________ Dim amd As Stream Set amd = New Stream 'Open binary stream amd.Open amd.Type = adType


[02/03] Saving binary data from SQL image field to a file -
I want to pull the binary data out of the image field in SQL2005 and store it back to a file. The binary data might be a word doc or an excel spreadsheet or a xml doc or a jpeg image. What is the best way to do this? Thanks


Loading binary data to a PictureBox -
Hi everyone.. I'm am insterested in finding a method to load my images onto a PictureBox. I can't use the LoadPicture function, since the images are stored in a database, so I therefore have the binary data in a variable and not in a file. Neither is the Picture property useful


binary files... -
What I am basically looking to do is create a *.dat file out of a random # of files in a listbox. and then read/ split them back into their original form later on, I would assume that I would need some sort of formatting such as: <header> files:3 </header> File1: [b


Binary - Simple Question -
Hi, I am having problems understanding binary: 1. What is the difference between open path for binary.. & open path for input. 2. If I load the data from both the examples above into strings will they be the same (if the files are exe)? 3. If you open an EXE file (open st


Quick Question about Binary Files -
I'm guessing that QuickBooks uses a binary file to store its data in. My question is, is there a limit to how much data you'd want to store like this? Is there a point to where you would need to be using a database? From what I can tell, (and as has been suggested to me on this f


Reading and returning binary files (jpg/gif) from a file not a database -
I have a class that needs to read in a binary file (jpgs/gifs) from the directory location and return the binary file - not the path to the file. I've searched online, .net studio documentation and havent found any examples of how to do this. I've found a few examples how to read bin


Importing binary -
I need to rearrange the data of a .pbm file (similar to a monochrome .bmp file), but as I need to move individual pixels (and each pixel is one bit) I must play around with the binary. I can do this by using a hex editor and then copying the hex into excel, converting to binary and the


Reading another program's binary data file -
Hi vb world! I wanted to know is there any way in which i can read another program's binary file The problem is as follows: I use a third party software program which collects live stock quotes from a website java applet and stores it in a binary file for its own use. I wanted


reading from binary files -
I am trying to read from a binary file. I am getting some weird input however. The binary file is called "my file.bin" and contains these simple hex characters: F7 00 00 08 F0 I want to be able to insert every pair of hex data into a simple array. Here's the code I'v


receive binary data using MSCOMM1.input -
Hi, guys, I am facing a strange problem. I try to get the binary data from the serial port using mscomm1. but I can't use binary array to get it. I tried to use string and variant data type but it not work properly. any one can help? dim data(256) as byte data = mscomm1.inpu


Creating a binary file -
Hai all, I want to write binary contents into a file in an asp page. I came to know that open filename for binary statement cannot be used in ASP page. Scripting.FileSystemObject also cannot be used I thought ADODB stream could be used. But my requirement specifies that only


Reading Binary Files Into VB Arrays -
Help! I have a binary file that was created using a FORTRAN program that wrote out data in the form of 3 very large arrays into an unformatted file. I can re-read this data in FORTRAN as follows: ******************************************************************** real array1(16


FSO binary files -
Hi, I am working on the file system object now, and when I search the MSDN I found the following : Creating Files and Adding Data with File System Objects There are three ways to create a sequential text file (sometimes referred to as a "text stream"). One way is to use t


Help with File writing! -
I have a program and I need it to save both string and binary to a file. It prints all settings and data (strings) into a file. Then I need to read a bunch of bmp files, and save their binary data to that same file (so it can be used to reconstruct them later). I have tried many things


Retrieve Binary data -
This is how i insert binary data to a binary file: -> fingerprint is a BitSet format File binFile = new File("BinaryFp.txt"); FileOutputStream output = new FileOutputStream (binFile); DataOutputStream data = new DataOutputStream (output); for(int j=0,len=1024;j<l


Find and replace a word in a binary file !! -
I have a file with binary data in it (attachment) !! How can I find a word in it and replace it with another?? does anyone know?? first i load : Dim bBytes() As Byte Open "data.dat" For Binary As #1 ReDim Preserve bBytes(LOF(1) - 1) Get #1, , bBytes Close #1 ..


regarding files and rtf -
i am using an rtf control. now i want to insert the binary format of rtftext into the data base. first i am placing rtf text into a text file. now i am opening that file in binary read access, but i am getting characters. how can i get binary conversion of that text? is any buil


saving to a binary file -
Hi there... how do I save my project to a binary file? (obviously a beginner's question!!) I want to save in my binary file 2 arrays, 4 variables and an image file... how do I do it?? (I don't even kown how to open a type binary file!!!)... and by the way how do I open it??...


Reading a binary file ! HELP!!! -
I can open a binary file as such: Open "d:\2002-03.SUB" For Binary As #1 (I beleive I am doing this right) but can I dislay this file as you can a database file? I need to know the contents or how to read it to be able to start a program on it. Any help with binar


binary vs. ... not binary -
What are the advantages to using binary file access vs. not binary writes/reads? I'm curious and wonder if I should be using binary because of some optimization that I don't know of? Especially since one app I use writes out to a 4+ mb file.


[205] Reading graphics from binary file -
Ok, so here is what I am trying to do: I want to open binary file, which contains graphics stored at certain offset - I know the header and footer of the file (it is PNG) so obtaining offsets should be pretty easy. What is more complicated - is to display the graphics directly on my


Binary data to ASCII -
Hello ppl, I want to convert binary data (found in a exe file eg) to ASCII to send it via the internet in my prog. First I want to open the binary file (eg HelloWorld.exe) and convert the contents to a ASCII file (eg HelloWorld.txt). Now I can open this file and send to with my w


Convert float vertices to binary file -
Hi, I can read and write vertices (floats) using ASCII files. I can even read vertices doing a binary read. How do I take some float values and write them to a binary file? A simple example writing a number such as -12.34 would be appreciated. In this case, I think a float takes 4 b