Jump to content

[RESOLVED] How to get the data from a picture in text


Recommended Posts

I have a square.gif picture. I need to get the data somehow from that file, and then be able to open a new file, (new.gif) and then write that data, close the file, and it should be the exact same as before.

Thanks for all your help!

Edited by Alienware
Link to comment
Share on other sites

This isn't working.

If Not FileExists(@TempDir & "\square.gif") Then
        $a__a_Handle = FileOpen(@TempDir & "\square.gif", 16)
        FileWrite($a__a_Handle, "0x47494638396117001700F72A00000000FFFFFF7B91B42B4F822D508"& _
        "22E51832F51835F7CA82D518345668F4768904B6C934E6D93527196A8B7CA4B6C92547396F5E8A1F4"& _
        "E49CF3DE96F1D78EEFCF86EDC77CEDC77DEBBF73EBBE73E9B568E8B569E7AC5EE4A354E7AB5EE29A4"& _
        "AE5A254DE8A38E09141E09242DB7E2BDD8331DC8331DE8A39DA7926DB7D2B00000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000000000000000000000000000000000000"& _
        "000000000000000000000000000000000000000000000000021F9040100002A002C00000000170017"& _
        "000008A20055081C48B0A0C1810E201418C0B0A1C38703103C70A08281800818336ADC98510003150"& _
        "6221C1C39308201150444921C1981004A092B474A70496042CC83136852B8699002CD0A3C0B56A079"& _
        "2128410B3433181D8881A686A502373885AA422A4A0F5439D00441B503CD0F543FD014417504CD135"& _
        "443D02C41D5044D125453B83480822A8A93090EA0D8CBB7AF5FBE0714A870D0C00081C388132B2650"& _
        "60818380003B")
        FileClose($a__a_Handle)
    Else
        MsgBox(0, "", "")
    EndIf

That binary data is the stuff I got from the picture

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...