Announcement

Collapse
No announcement yet.

Grabbing a graphic from a returned web string

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ken Elvehjem
    replied
    Found a solution

    Found it...

    Did a little more digging and learned that if I search for this string, which is the PNG header, and save everything after it, I get a PNG file: hexadecimal byte values are 89 50 4E 47 0D 0A 1A 0A

    Found this in the WikiPedia.

    So, we can shut this thread down.

    Ken

    Leave a comment:


  • Ken Elvehjem
    started a topic Grabbing a graphic from a returned web string

    Grabbing a graphic from a returned web string

    Hi,

    At one time, I needed to be able to submit a URL to a webserver via TCPOPEN etc. for a graphic image (jpeg) and save it as a file when it came back.

    Someone on the list (Lance, maybe) showed me to use the following format

    Entire_Page = RIGHT$(Entire_Page, LEN(Entire_Page) - INSTR(Entire_Page, "JPEG") - 7)

    Where "Entire_Page" is the whole string returned by the server.

    Now I'm trying to do the same with PNG files, but it is not working out so good -- they seem always to be invalid files.

    Any thoughts?

    Ken
Working...
X