Author Topic: how to get the pic from my cam  (Read 743 times)

Offline Marmor

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 936
  • 96A285CC
    • View Profile
    • my youtube channel
how to get the pic from my cam
« on: 2022-May-29 »

i bought a cheap sony cam from ebay in the hope i can get the picture from.

the url works in firefox and edge , "" - it call a javascript i think.

any tips?

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5116
  • O Rly?
    • View Profile
I <3 DGArray's :D

AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10851
  • here on my island the sea says 'hello'
    • View Profile
Re: how to get the pic from my cam
« Reply #2 on: 2022-Jun-01 »
You want that picture in glbasic? Try netgetweb (is it called that?) and print what you get. I guess it returns html code. See where ghe img tag points to and try netgetweb on that address again. It should be a jpeg.    Or, its a video. On windows, download ffmpeg and grab one frame to extract a jpg, then.

Offline dreamerman

  • Global Moderator
  • Dr. Type
  • *******
  • Posts: 455
    • View Profile
    • my personal website
Re: how to get the pic from my cam
« Reply #3 on: 2022-Jun-02 »
First it depends what such call returns, is it html code with encoded image, raw jpeg or something.
Check 'programmer console/options/view' in your browser what does it do after going to this site, or use http debug tool/spy like Fiddler to get all needed info, as it may require to use some specific http headers to force some behavior. If you would need to get that image asynchronously best would be custom http handing code with network commands. If you would have any problems let us know.
Check my source code editor for GLBasic - link Update: 20.04.2020