Click to See Complete Forum and Search --> : JPG to binary, Emergency!!


visual fzz
November 19th, 1999, 10:25 AM
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

smalig
December 10th, 1999, 01:36 PM
Try a Get statement:

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


smalig@hotmail.com
http://vbcode.webhostme.com/