CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 1999
    Location
    France
    Posts
    29

    JPG to binary, Emergency!!

    Hi Everybody

    I want to read a JPG file in my app in order to convert the Binary string of the file in hexadecimal string.
    But I can't get the binary string:
    I wrote this code part to show the binary string in a text box but an error occurs (N°62,in french :"L'entrée depasse la fin du fichier")
    :

    Myfile = FreeFile
    Open "c:\photos\test.jpg" for binary as #myfile

    input #myfile, Mystring
    TextBox1.Text = Mystring




    I don't understand why it doesn't work!!

    Fzz



  2. #2
    Join Date
    Sep 1999
    Location
    Germany
    Posts
    66

    Re: JPG to binary, Emergency!!

    Try a Get statement:

    VarString = String(10," ")
    Get #1,,VarString


    [email protected]
    http://vbcode.webhostme.com/

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