Hi,
I would need to recieve an image over http to display in pb!
how could that be done?
Thanks
recieve image over HTTP ??? Help
bender-rulez,
Does your question mean getting an image from an URL ?
In this case the easiest way should be to create a window with a web gadget.
If not maybe you could give more details.
Rgrds
Does your question mean getting an image from an URL ?
In this case the easiest way should be to create a window with a web gadget.
If not maybe you could give more details.
Rgrds
My avatar is a small copy of the 4x1.8m image I created and exposed at 'Le salon international du meuble à Paris' january 2004 in Matt Sindall's 'Shades' designers exhibition. The original laminated print was designed using a 150 dpi printout.
Some good code for this sort of thing can be found in the code archive on www.purearea.net
@}--`--,-- A rose by any other name ..
-
bender-rulez
- User

- Posts: 49
- Joined: Mon Mar 14, 2005 11:30 am
Ok,
what i found already here in the forum is this for getting the image via http
the image will then recieved?!
what now?
how to display the image or save it to disk?
sorry about that question, but loading an image from disk I know how it works, but getting over the network?!?
I need it for without WinAPI
Thanks
what i found already here in the forum is this for getting the image via http
Code: Select all
; Standard Connection Types
#CONNECT_FTP=21
#CONNECT_HTTP=80
#CONNECT_HTTPS=81
Connection.l = OpenConnection("www.example.com",#CONNECT_HTTP) ;OpenConnection
RecieveNetworkFile( Connection, "download/examples/example.jpg" )
CloseConnection( Connection ) ; close connection
what now?
how to display the image or save it to disk?
sorry about that question, but loading an image from disk I know how it works, but getting over the network?!?
I need it for without WinAPI
Thanks
-
bender-rulez
- User

- Posts: 49
- Joined: Mon Mar 14, 2005 11:30 am
Sorry Dudes! I got it already! 
Corrected Code
this do the magic! its download the File to the directory where my programm startet from!
Thanks at all!
Corrected Code
Code: Select all
; Standard Connection Types
#CONNECT_FTP=21
#CONNECT_HTTP=80
#CONNECT_HTTPS=81
Connection.l = OpenNetworkConnection("www.example.com",#CONNECT_HTTP) ;OpenConnection
ReceiveNetworkFile( Connection, "download/examples/example.jpg" )
CloseNetworkConnection( Connection ) ; close connection Thanks at all!
-
bender-rulez
- User

- Posts: 49
- Joined: Mon Mar 14, 2005 11:30 am
I guess the problem is that you do not deal well with HTPP / FTP protocols right now ...
When opening an HTTP connection you first have to negociate with the server. Same for an FTP one.
When opening an HTTP connection you first have to negociate with the server. Same for an FTP one.
My avatar is a small copy of the 4x1.8m image I created and exposed at 'Le salon international du meuble à Paris' january 2004 in Matt Sindall's 'Shades' designers exhibition. The original laminated print was designed using a 150 dpi printout.
-
bender-rulez
- User

- Posts: 49
- Joined: Mon Mar 14, 2005 11:30 am


