UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
July
Su M Tu W Th F Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Sponsored Links
Latest Postings
Latest Reviews
Topic Options
Rate This Topic
#17737 - 10/02/02 08:25 PM web images
Gollum Offline
Member

Registered: 06/05/02
Posts: 207
Loc: US
hey hey. alright, SR has helped me out a bit...but there's one thing i couldn't quite get yet. first off, im making myself a simple webserver app that i can use my webcam with. basically, i want to be able to take snapshots from my webcam and display them online from my own computer. welll...i got the webserver part up, however, it can't display images. i tried searching around at pscode.com, google, and other things, but nothing that i could find that could help me. has anyone made one of these b4 and know what i mean? any help would be appreciated//
_________________________
Unbodied unsouled unheard unseen
Let the gift be grown in the time to call our own
Truth is natural like a wind that blows
Follow the direction no matter where it goes
Let the truth blow like a hurricane through me

Top
Sponsored Links
      
#17738 - 10/03/02 12:31 AM Re: web images
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
well, ok, you want to send the webcam image. Is that it? Cause you have 2 options, return a page with the image in it, or just return the image itself (easiest method).

Tell me which you wanna do and I'll tell ya how to do it.
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#17739 - 10/03/02 02:15 AM Re: web images
Gollum Offline
Member

Registered: 06/05/02
Posts: 207
Loc: US
ok, well, i'd like to return a page w/ the image, that way i can adjust how the page looks, where the image is placed, and plus, include either an applet or meta tag that refreshes the window, ala a sort of streaming video type thing.//
_________________________
Unbodied unsouled unheard unseen
Let the gift be grown in the time to call our own
Truth is natural like a wind that blows
Follow the direction no matter where it goes
Let the truth blow like a hurricane through me

Top
#17740 - 10/03/02 09:17 AM Re: web images
black^Pimp Offline
UGN GFX Whore

Registered: 09/26/02
Posts: 624
Loc: Underground
SilentRage way to go bro.. you're hell smart.

all the best
_________________________
+^Born Intelligence

Top
#17741 - 10/03/02 03:58 PM Re: web images
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
well here you go. First I'll tell ya why it's not working. All your program ever sends is the HTML. It's not sending the Image. So you need to learn how to detect when the browser is requesting that image. Here's one example of how the protocol would look:

Code:
BROWSER CONNECTS TO SERVER
 
BEGIN BROWSER REQUEST
GET / HTTP/1.1
Host: 209.6.98.47
User-Agent: Internet Explorer
Connection: Keep-Alive
 
END BROWSER REQUEST
 
BEGIN SERVER RESPONSE
HTTP/1.1 200 Ok
Content-Type: text/html
Connection: Closed
 
<HTML><BODY>
  <IMG SRC="image">
</HTML></BODY>
END SERVER RESPONSE
 
SERVER DISCONNECTS
BROWSER CONNECTS TO SERVER
 
BEGIN BROWSER REQUEST
GET /image HTTP/1.1
Host: 209.6.98.47
User-Agent: Internet Explorer
Connection: Keep-Alive
 
END BROWSER REQUEST
 
BEGIN SERVER RESPONSE
HTTP/1.1 200 Ok
Content-Type: image/gif
Connection: Closed
 
[IMAGE]
END SERVER RESPONSE
 
SERVER DISCONNECTS
So now, here's a suggestion for the code in your DataArrival event:

Lines = Split(Data, vbcrlf)
Fields = Split(Lines(0), " ")

If Fields(1) = "/image" Then
'Send Header and image file
Else
'Send header and HTML page
End If
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top

Featured Member
Registered: 03/05/02
Posts: 9
Forum Stats
2145 Members
46 Forums
33162 Topics
68329 Posts

Max Online: 1567 @ 04/25/10 10:20 AM
Top Posters
UGN Security 26325
Gremelin 7192
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Jimmie Menon, fghijk435948, Devo60, ali, lavos
2147 Registered Users
Who's Online
0 registered (), 670 Guests and 312 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!