Results 1 to 5 of 5

Thread: 2 in 1

  1. #1
    Guest

    Question

    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.

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    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....


    Things I do when I am bored: DotNetable

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    Guest
    Thanks for replying...but i have little idea of using Binary files. Could you please explain it to me?

  5. #5
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    They have an article how to it here at VbNet:

    http://www.mvps.org/vbnet/code/fileapi/combine1.htm

    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width