Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Streaming a JPG from one server to another
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00913583
Message ID:
00913713
Views:
19
I am not sure what you said when talking about "streaming from a server".

But an img tag with the full url of the JPG that sit on the other server will do the trick.

If its mean "streaming from an application on another server", you just have to read the file in a variable and send this directly to the "response" stream with the proper content-type header. Using WConnect, the code will look like this:
function StreamLogo
  Response.ContentTypeHeader("image/jpeg")
  myJpg=FILETOSTR('logo.jpg')
  Response.Write(myJpg)
endfunc
HTH :-)

>Hi,
>
>I'm trying to stream a JPG image from one web server to another and display it on my web form. Does anyone have any solid ideas on how to do this? I'm doing it now in a pretty down and dirty way. Thank you.
>
>Tim
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform