CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    May 1999
    Posts
    73

    open binary files

    hi...hope someone can help....
    i'm writing a program that needs to open binary files of some images. i've tried file.read, fopen and some other functions. however, i don't know how can i display the opened files on the screen for the user to view. anyone has any advice ?


  2. #2
    Join Date
    Apr 1999
    Posts
    90

    Re: open binary files

    What image format (.bmp, .jpg, etc...) are the files? You need to know how to interpret the binary data.


  3. #3
    Join Date
    May 1999
    Posts
    73

    Re: open binary files

    dear Michael,
    the format is .bin
    my friend said there are a few formats for .bin files and i need to know which format it is in order to process it. is this true ?



  4. #4
    Join Date
    Apr 1999
    Posts
    90

    Re: open binary files

    April,

    Unfortunately, I'm not sure that ".bin" tells you a whole lot about what kind of image format that file might contain. I don't recognize that as a standard image file extension. Generally, ".bin" is used simply to say that it contains binary data. Its not an indication of how to interpret the data. You and I can write binary files containing anything and give it a ".bin" extension.

    Yes, it is true that you need to know the format in order to interpret the binary data within the file.

    Is it some kind of "in-house" format that you may be using?



  5. #5
    Join Date
    May 1999
    Posts
    73

    Re: open binary files

    hi Michael,

    i'm actually writing a program that opens binary files which : ( these are all that i know about the binary files ) :

    an image is captured and its pixels values are stored into an unsigned int 256*256 buffer.
    this buffer is then saved as a binary file.



  6. #6
    Join Date
    Apr 1999
    Posts
    90

    Re: open binary files

    April,

    Is that the size of the image (256 wide X 256 high)?

    Do you have an example file that I could look at?

    Michael...
    [email protected]



  7. #7
    Join Date
    May 1999
    Posts
    73

    Re: open binary files

    dear Michael,
    the image is 256pixels * 256pixels.
    i'll send you an image tomorrow ( Singapore time 10 - 11 am ). now is Singapore time 2:45 am
    thanx.


  8. #8
    Join Date
    Apr 1999
    Posts
    90

    Re: open binary files

    Go To Bed!!!


  9. #9
    Join Date
    Apr 1999
    Posts
    90

    Re: open binary files

    April,

    Since you're 12 hours ahead of me, send the file to my work and home. Maybe I can look at it before I go to bed tonight.

    [email protected]
    [email protected]

    Thanks!


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

Featured