I want to make a new file format for my vb program having a picture file and some text binded in the same file. How do I do it?
...And how can I read back the picture as well as the text from the file.
Printable View
I want to make a new file format for my vb program having a picture file and some text binded in the same file. How do I do it?
...And how can I read back the picture as well as the text from the file.
That is an interesting task to try. I read your question and the thought immediately came to mind of using a binary file, place the image in the file then the text (as binary of course). Put a header in the file which you will read first that states the size of the image and size of the text so you know how much to read from the file.
This is a total off the wall idea, I do not know if this is more trouble than it is worth but there you go....
Not at all, i've developed my own format myself thats able to pack any file into it into a directoy structure, like .PAK and .WAD
Thanks for replying...but i have little idea of using Binary files. Could you please explain it to me?
They have an article how to it here at VbNet:
http://www.mvps.org/vbnet/code/fileapi/combine1.htm