| View previous topic :: View next topic |
| Author |
Message |
Bob Bedford Guest
|
Posted: Tue Sep 26, 2006 5:27 pm Post subject: resize images. |
|
|
Hi all.
It is possible to receive pictures from a webserver (POST) then send back
them after some modifications?
How to do so ? Ideally we are looking for creating a remote service that
listen for POST calls. As our server is on Linux (PHP) we can't create a
Linux CGI, and our ISP don't allow this. We are looking for a remote service
for our program.
Where to start ?
Bob |
|
| Back to top |
|
 |
theo Guest
|
|
| Back to top |
|
 |
Bob Bedford Guest
|
Posted: Tue Sep 26, 2006 6:14 pm Post subject: Re: resize images. |
|
|
"theo" <nospam (AT) for (DOT) me> a écrit dans le message de news:
45192514 (AT) newsgroups (DOT) borland.com...
Hi Theo,
I't because of our ISP limitations that we need to do this. If the images
are big (more than 1500 pixels wide) and the memory is limited (16MB), then
the server produce an error and everythings goes wrong.
I actually use the GD library for resizing (the link you sent) and I'm
having this problem as the library uses the memory to resize the image.
Bob |
|
| Back to top |
|
 |
theo Guest
|
Posted: Tue Sep 26, 2006 6:55 pm Post subject: Re: resize images. |
|
|
Bob Bedford schrieb:
| Quote: | I't because of our ISP limitations that we need to do this.
|
OK, but I really don't understand your initial question.
What is "a remote service that listen for POST calls" ???
What's a "POST call" anyway?
Do you mean HTTP method "POST"? But then PHP should handle this easily. |
|
| Back to top |
|
 |
Bob Bedford Guest
|
Posted: Tue Sep 26, 2006 7:07 pm Post subject: Re: resize images. |
|
|
| Quote: | I't because of our ISP limitations that we need to do this.
OK, but I really don't understand your initial question.
What is "a remote service that listen for POST calls" ???
What's a "POST call" anyway?
Do you mean HTTP method "POST"? But then PHP should handle this easily.
Maybe I wasn't so clear, sorry |
When a user upload some images on my website, then they are resized. If the
original message is too large (in resolution) then the server fires an error
message and the script fails.
My idea: if I detect uploading of too large images (having their size) then
I'd like to send the images with a POST HTTP method from the server to my
program (running on our XP server), then my program will detect entrying
images, resize them then return (also with a POST) to a page I'll create in
PHP that will save the resized images where they should be.
Remote service that listen for POST calls is the program that will receive
the HTTP POST form from the server, with the images.
POST call is like a form on Internet where the method can be POST or GET. It
isn't so important as I can set the value in my form in POST or GET anyway.
Bob |
|
| Back to top |
|
 |
theo Guest
|
Posted: Tue Sep 26, 2006 7:13 pm Post subject: Re: resize images. |
|
|
| Quote: |
My idea: if I detect uploading of too large images (having their size) then
I'd like to send the images with a POST HTTP method from the server to my
program (running on our XP server),
|
Gosh! Are you serious?
Simple solution: Change to a decent ISP! |
|
| Back to top |
|
 |
Bob Bedford Guest
|
Posted: Tue Sep 26, 2006 7:25 pm Post subject: Re: resize images. |
|
|
| Quote: | My idea: if I detect uploading of too large images (having their size)
then
I'd like to send the images with a POST HTTP method from the server to my
program (running on our XP server),
Gosh! Are you serious?
Simple solution: Change to a decent ISP!
|
Yes I'm serious :-)
The actual ISP is one of the best here in Switzerland, so I won't change
just for one limitation. The problem is real for many people around (look at
google for this problem) and going to a dedicated server only for that is a
shame.
Also I found to be an interesting problem to solve and would be interested
to know how can be managed.
Bob |
|
| Back to top |
|
 |
theo Guest
|
Posted: Tue Sep 26, 2006 7:45 pm Post subject: Re: resize images. |
|
|
| Quote: |
The actual ISP is one of the best here in Switzerland,
|
How come your ISP is in Switzerland when www.bedford.com is in Norwalk,
Connecticut? Fake email-address?
| Quote: |
Also I found to be an interesting problem to solve and would be interested
to know how can be managed.
|
But then it's still mainly a problem on the PHP side.
If you can't install anything on your ISP's server, then you have to use
PHP to "forward" the data to you. Maybe curl helps:
http://ch2.php.net/manual/en/ref.curl.php
Your "Remote service that listen for POST calls" is a webserver  |
|
| Back to top |
|
 |
Bob Bedford Guest
|
Posted: Tue Sep 26, 2006 8:31 pm Post subject: Re: resize images. |
|
|
| Quote: | How come your ISP is in Switzerland when www.bedford.com is in Norwalk,
Connecticut? Fake email-address?
Fake email...sorry |
| Quote: |
Also I found to be an interesting problem to solve and would be
interested
to know how can be managed.
But then it's still mainly a problem on the PHP side.
If you can't install anything on your ISP's server, then you have to use
PHP to "forward" the data to you. Maybe curl helps:
http://ch2.php.net/manual/en/ref.curl.php
Your "Remote service that listen for POST calls" is a webserver
Thanks for the ref.curl link. A great start point for what I'd like to do. |
Anyway I still need help in the delphi part as I've never tried such thing.
Bob |
|
| Back to top |
|
 |
theo Guest
|
Posted: Tue Sep 26, 2006 9:49 pm Post subject: Re: resize images. |
|
|
| Quote: | Anyway I still need help in the delphi part as I've never tried such thing.
|
You don't need any Delphi imho.
You need a second webserver at yours, doing the same thing as the ISP's
but with no restrictions. |
|
| Back to top |
|
 |
theo Guest
|
Posted: Tue Sep 26, 2006 10:20 pm Post subject: Re: resize images. |
|
|
| Quote: | Fake email...sorry
|
Btw. I think it's bad style to take an existing domain name as part of a
faked email-address. People might think you are somebody of Bedford
Associates Inc.
Take something that is obviously faked, like mine for example. |
|
| Back to top |
|
 |
Jamie Dale Guest
|
Posted: Tue Sep 26, 2006 10:48 pm Post subject: Re: resize images. |
|
|
Erm why do you even need a fake email address? - supposing one user wants to
contact another user privately?
My email is real. I have no problems with it.
J
"theo" <nospam (AT) for (DOT) me> wrote in message
news:45196114$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
Fake email...sorry
Btw. I think it's bad style to take an existing domain name as part of a
faked email-address. People might think you are somebody of Bedford
Associates Inc.
Take something that is obviously faked, like mine for example. |
|
|
| Back to top |
|
 |
theo Guest
|
Posted: Tue Sep 26, 2006 11:44 pm Post subject: Re: resize images. |
|
|
| Quote: | Erm why do you even need a fake email address? - supposing one user wants to
contact another user privately?
My email is real. I have no problems with it.
|
I don't like to spread my private email in the ng's/forums for spam
protection and other reasons.
And I don't want to be contacted privately by people I don't know.
If it's necessary, there's always a way to contact each other. |
|
| Back to top |
|
 |
|