-
Image Problem
Ok here is my problem:
I am trying to get an image from a processor. I send them information that
they need to identify the image in a url. In turn they return a url to me
to the image. This part works fine. I can get the image but it is way too
big. I am trying to get the image and size it so it is printable. My problem
is that what is returned is an image tag with the URL to the image. I am
trying to figure out how to get the returned URL and save it to a variable
so I can parse it out to just the URL and use it in an image tag on my page
and display it.
Oh this is an asp page. I have looked in a few javascript books and asp
books but I can't find anything.
Can anyone help me out here??
-
Re: Image Problem
This is my suggestion to you:
Create an ASP page with the following:
<%
Dim imageURL, imageH, imageW
imageURL = Request.Querystring("url")
imageH = Request.Querystring("h")
imageW = Request.Querystring("w")
%>
<html>
<body>
<head>
<title>Picture Viewer</title>
</head>
<table width="90%" border="0">
<tr>
<td><img src="<%= imageURL%>" border="0" height="<%= imageH%>" width="<%=
imageW%>"></td>
</tr>
</table>
</body>
</html>
The above page we will name PictureView.asp
When you goto this page you must have the URL Just like Below:
http://www.yourdomain.com/PictureVie...erwidthyouwant
This must be run on a website that supports ASP or it will not work.
Please e-mail me with questions, dwilliamssprint@earthlin.net
Derek
"Jack" <jreed@esp-svision.com> wrote:
>
>Ok here is my problem:
>
>I am trying to get an image from a processor. I send them information that
>they need to identify the image in a url. In turn they return a url to
me
>to the image. This part works fine. I can get the image but it is way
too
>big. I am trying to get the image and size it so it is printable. My problem
>is that what is returned is an image tag with the URL to the image. I am
>trying to figure out how to get the returned URL and save it to a variable
>so I can parse it out to just the URL and use it in an image tag on my page
>and display it.
>
>Oh this is an asp page. I have looked in a few javascript books and asp
>books but I can't find anything.
>
>Can anyone help me out here??
>
-
Re: Image Problem
Thanks for the info Derek!
I implemented that code and it worked great! Now the bad part comes into
play. That URL that I was using was just for testing purposes. The actual
URL that I will need to use is set up so only our web server can access it.
Now I need to figure out a way for the server to get the image and then
somehow have the client view the image.
I have been working on ways to accomplish this all day and I am becoming
frustrated.
I wish this image processor would just come up with some key that would be
created on our side and then sent with the request so they could verify and
send me back the image. However, they are not this advanced so they have
it set up to where they will only accept requests from our specific IP address.
The first thing that popped into my head was, have the server download the
image and save it to a session variable or something and then access that
from another page and display it for the user. But, I can't figure out how
to do so.
HELP!!
Thanks in advance!!!
"Derek" <dwilliamssprint@earthlink.net> wrote:
>
>This is my suggestion to you:
>
>Create an ASP page with the following:
><%
>Dim imageURL, imageH, imageW
>imageURL = Request.Querystring("url")
>imageH = Request.Querystring("h")
>imageW = Request.Querystring("w")
>%>
><html>
><body>
><head>
><title>Picture Viewer</title>
></head>
><table width="90%" border="0">
><tr>
><td><img src="<%= imageURL%>" border="0" height="<%= imageH%>" width="<%=
>imageW%>"></td>
></tr>
></table>
></body>
></html>
>
>The above page we will name PictureView.asp
>When you goto this page you must have the URL Just like Below:
>http://www.yourdomain.com/PictureVie...erwidthyouwant
>This must be run on a website that supports ASP or it will not work.
>Please e-mail me with questions, dwilliamssprint@earthlin.net
>
>Derek
>
>
>
>"Jack" <jreed@esp-svision.com> wrote:
>>
>>Ok here is my problem:
>>
>>I am trying to get an image from a processor. I send them information
that
>>they need to identify the image in a url. In turn they return a url to
>me
>>to the image. This part works fine. I can get the image but it is way
>too
>>big. I am trying to get the image and size it so it is printable. My
problem
>>is that what is returned is an image tag with the URL to the image. I
am
>>trying to figure out how to get the returned URL and save it to a variable
>>so I can parse it out to just the URL and use it in an image tag on my
page
>>and display it.
>>
>>Oh this is an asp page. I have looked in a few javascript books and asp
>>books but I can't find anything.
>>
>>Can anyone help me out here??
>>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks