CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Resizing pictures not showing up

Print topic Send  topic

Author Message
flipandboef


Posts: 107
Posted: 11/22/2006, 9:07 AM

Newbie question perhaps...
I have a file called: resize.asp that contains the following code:
<%
Set jpeg = Server.CreateObject("Persits.Jpeg")
jpeg.Open( Request("path") )
jpeg.Width = Request("width")
jpeg.Height = jpeg.OriginalHeight * jpeg.Width / jpeg.OriginalWidth
jpeg.SendBinary
%>

In this code I disabled the Path part , since the full path is mentioned in the MS-Access database.
Example: http://www.mydomain.com/images/xxx.jpg
In CodeCharge on the SRC for the image that is displaying in a grid, I used:
resize.asp?{PhotoSmall}&a m p;width="48"
(ignore whitepsace in amp, wouldn't show otherwise..)
(in html code: <img src="resize.asp?{PhotoSmall}&width="48"">)

I have worked with this before but have a feeling I am forgetting a part. The pictures are not showing up on the page (shows as a red X and when asking the properties of the picture via the site it shows:
----
http://www.mydomain.com/resize.asp?http://www.mydomain....83.jpg&width=48
---

Anyone who can help me out here?

(ps: If you want I can always send you the CCS files for it...)
View profile  Send private message
flipandboef


Posts: 107
Posted: 11/22/2006, 9:28 AM

ok this might help as a valuable add-on...
I removed the path and copied the picture in the root.
The "new" asp file now looks like:

<%
Set jpeg = Server.CreateObject("Persits.Jpeg")
jpeg.Width = Request("width")
jpeg.Height = jpeg.OriginalHeight * jpeg.Width / jpeg.OriginalWidth
jpeg.SendBinary
%>

Then I copied the properties from the picture in tried to access it via the browser directly...
This error came up:

Persits.Jpeg.1 error '80040002'
Image width must be from 1 to 65535.
/resize.asp, line 4

the address:
http://www.mydomain.com/resize.asp?26483.jpg&width=48
-----------
Another error I get when playing around a little is;
ServerObjectCreateObject: - Error 'ASP 0134'

Invalid ProgID attribute
/resize.asp, line 2
The object has an invalid ProgID of 'Persits.Jpeg'.

Hope it helps you to help me?
View profile  Send private message
flipandboef


Posts: 107
Posted: 11/28/2006, 8:40 AM

ok I feel pretty dumb right now hahahaha!
It appears you have to include the path, thought I could take it out but nope...
So issue solved.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.