Save Current ASP As An Image

Is there a way to save the client side opened asp page as a image file to the server side.That is take a screen shoot of the page and save it as a file preferrable html file or some image file and save it onto the server.

View Replies


ADVERTISEMENT

Save Current Page

is there an easy way to save the current page in asp through code. for example if I dynamically created a page and then wanted to save it without requiring the user to do anything.

View Replies View Related

Save Current Page

I want to be able to save a file created by an asp file somewhere. Or even email the file if possible. I've searched google extensively and only found people with the same problem but no answer. He solved the problem but didnt post the solution.

View Replies View Related

Help Me Save An Image File?

Can someone please (i dont even know where to start on this as i am completely incapable of file or image functions at the moment) help me do this:

i want to write a script that will copy an image from an internet page, then save it in a folder with the speficied filename. The url link is like this :
http://ipaddressort/BufferingImage?ImageAdr=123456.

The image is captured by the webcam, of course I can view it in the browser by typing the url, but I want to save it without any popup window or right click, I want to do it in the script.

View Replies View Related

Save An Image File

Is it possible for asp/scripts to create and save it in an image format(gif, jpg)? Say a script that creates an arrow picture.

View Replies View Related

Resize The Image And Save

I have problem with resizing a picture and don't know what the problem with the following code:

dim fs
dim sourcefile
sourcefile = uploadsDirVar & filename
set fs=Server.CreateObject("Scripting.FileSystemObject")

'to access the data of the image
dim iwidth, iHeight
dim myImg

if fs.fileExists(sourcefile) then
set myImg = loadpicture(sourcefile)
iwidth = round(myImg.width / 26.4583)
iHeight = round(myImg.height / 26.4583)

if (iwidth > 250) then
iHeight = (iHeight * 250)/iwidth
iwidth = 250
end if

If (myImg.Width > iwidth) or (myImg.Height > iHeight) Then
If (myImg.Width / iwidth) > (myImg.Height / iHeight) Then
myImg.Resize iwidth, 0
Else
myImg.Resize 0, iHeight
End If
End If

myImg.WriteFile sourcefile
set myImg = nothing
end if

set fs=nothing


when i run it, the following error occur :

Object doesn't support this property or method: 'myImg.Resize'

View Replies View Related

To Save ASP Rendered Table As An Image

I am trying to find a way to save/copy ASP/HTML generated tables on a webpage as images.
In other words, I want users to right click on a table and save it just like the way they would save an image.

Is there any way of programming this behavior without having the user ro download any software like ActiveX?

View Replies View Related

How To Save An Edited Image In The Database ?

I've problem on how to save an image file that has been edited into the database. Actually, i have to develop a webpage that can interact with the user where user can select an existing image in the database and customize the colour of the picture and also the background colour.

After editing the picture, i have problem to save the edited image in the database. For your info, we're using Flash MX 2004 to change the picture and background colour....

View Replies View Related

Save Remote Image To My Server

I would like to reference a remote image, such as http://www.mysite.com/pic.jpg and save it to a local folder such as c:pics . Can this be done with ASP? I have played with many image manipulation components and none of them perform this fuction.

View Replies View Related

Upload Image And Save Filename To Access Database

How do I upload images and save filename to Access database?

View Replies View Related

Prompt "Save As" Dialog For Image

I'm trying to force save as dialogue using this code in download.asp..but
when it runs it prompts for download.asp to save or open.

code snippet (from aspfaq.com)

Response.ContentType = "application/x-unknown" ' arbitrary
fn = "wallpaper_1_1.jpg"
Response.write "<br>" & Server.MapPath("wallpaper") & "<br>"
FPath = Server.MapPath("wallpaper") & fn
Response.AddHeader "Content-Disposition","attachment; filename=" & fn

Set adoStream = CreateObject("ADODB.Stream")
adoStream.Open()
adoStream.Type = 1
adoStream.LoadFromFile(FPath)
Response.BinaryWrite adoStream.Read()
adoStream.Close
Set adoStream = Nothing

I want this page to prompt save image option, not page itself.

View Replies View Related

Recordset To Only Contain Current Items (i.e. If Date Of Item Is Past Current Date)

I have a noticeboard that the user inputs items into. One of those is the date of an event. Once that event has passed I want it to disappear from the page.

So I need to do a comparison with current date to the date in the "datestarted" field. My table is called "notices." Using Access and ASP VBscript.

View Replies View Related

Display An Image From Access, Stored As Location Name Not Actual Image.

I have a client who has had a ASP site with an Access database for several years. It stores information for the used cars on his lot. I have stored text in the database that points to the location of the image for each record. Each record will have a thumb image that is supposed to display in a list of vehicles available then the user can select an item from this list and a new page displays with the information and the regular size image. So far everything has worked fine exept for the display of the images which are stored in a separate directory called veh-photos. All I get are image place holders. I am using Dreamweaver 2004 and and Access 2000 for the database.

Following is the code to list vehicles: ....

View Replies View Related

Open Image In 'Kodak Image Edit Control' With Web Browser

1.I want to show a image file of type '.tif' in the browser window; for that I'm writting as ASP code page.

2.This '.tif' type image can be shown better with 'Kodak Image Control'.

3.To have this 'Kodak Image Control' on my code page I just add it's ..ocx to tool box and then drag it from 'Toolbox' to the page.

4.Now after dropping this control to the code it's type is getting changed to 'object' instead of type 'ImgEdit'(and I think this is the
reason I don't get correct result).

5.On one button's 'Onclick' event I'm calling a javascript function with which I'm setting a 'Path'and'Display' property of a control.

6.And want to show a image at location -- '..MFTDRCMF919685173-62.tif' which get shown in new browser window but could not get shown in that particular control. That means the path is correct, then what is the problem?

For better understanding of problem I'm pasting a following code which I've tried up till now......
..................................................
<%@ Language=VBScript %>
<% OPTION EXPLICIT %>

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">

<SCRIPT LANGUAGE=javascript>
<!--
function showpic()
{
var path;
path = document.frmtif.path.value;
alert(path);
document.frmtif.ImgEdit1.Image =path;
document.frmtif.ImgEdit1.Display;
window.parent.self.open(path);
}

//-->
</script>

</HEAD>
<BODY bgColor=#ffe4e1>
<form name="frmtif">
The Image
<P>
<OBJECT id=ImgEdit1 style="WIDTH: 409px; HEIGHT: 218px" type="ImgEdit"
align=left
border=1 classid=clsid:6D940280-9F11-11CE-83FD-02608C3EC08A
name=imgtif></OBJECT>

<input type="hidden" name="path"
value="..MFTDRCMF919685173-62.tif">
<input type="button" name="show" value="Show" onclick="showpic();">
</P>

</form>
</BODY>
</HTML>

..................................................

View Replies View Related

Displaying Alternate Image When Image Source Not Found

I am creating a dynamic ASP VBScript page, which gets data from an Access database.

In the database, there is a field which holds a URL to an image. I can get the image to display fine, but where there is no file that matches the URL (i.e. a missing image) I want to display an alternative, default image (e.g. one that says "Awaiting Image"). The field is never blank, but the image file may not exist for all records in the database.

I think what I am trying to get to is the following:

If file exists (using URL from database to get location of image file) then
display image using the url from the database as the image source
else
display default image - hardcoded in program
endif

I have had a go and come up with the attached but I get an error with my if statement...

View Replies View Related

Image From Image Folder Into Byte Array?

I can convert an image that is retrieved from a FileUpload object into a byte array and insert it into the database..

When the user signs-up i wish tosimply insert into the Picture (DB Type = Image) field to an image i already have saved in my images folder?

Anyone know of a way to do this? Tutorials, articles or advise??!

View Replies View Related

Show Image From SQL Image Field?

Here is my code. I'm using 2 pages.

(Page 1) blob.asp

<%
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_blob_STRING
Recordset1.Source = "SELECT AboutPic FROM Elizabeth.GF_AboutUs"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Response.contentType = "image/jpg" 'Recordset1.Fields("AboutPic") <---Tried
both methods
size = Recordset1.Fields("AboutPic").ActualSize
blob = Recordset1.Fields("AboutPic").GetChunk(size)
Response.binarywrite(blob)
%>

(Page 2 Show the Image)

<%
Dim urlString
urlString = "?" & Request.QueryString
%>

<% Another rs to show other information as text from the same table %>

<body>
<img src="blob.asp<%=urlString%>" width="194" height="256">
</body>

View Replies View Related

Upload New Image Get Path Of Old Image

I'm working on a project where I'm suppose to upload a image to a server. The uploading works fine but when I want to change the image I uploaded to another image I can't get the filepath of the old image to show in my "filefiled"....is it possible to set a "value" where I can retrieve a filepath in a form if the input type is "file"?

View Replies View Related

Get Current Url

Im trying to get the current url where the user is at and store it into a variable. I want this to be done automatically, not when a user clicks a button. Any ideas?

View Replies View Related

Getting Current URL

a way to get the current URL AND the variables in it, all in one command? There probably isn't, seems to simple, right?

View Replies View Related

Display The Current URL

I'd like to know how to display the current URL on the web page as a footer. This seems to be a fairly simple task, but everything i've found on the internet either doesn't work for some reason, or is asp.net specific....

View Replies View Related

Read Current Url

Is there a way that I can read the current url.

I have an asp page currently such as default.asp?x=1&y=2&z=3

Now I want to keep the existing parameters and attach another parameter
to it and resend to default.asp

As the original parameters are dynamic, and may or may not be
generated, the only way is to read the current url and to simply add my
new parameter such as h=5 to the url.

I don't know how to read the current url.

I tried Request.ServerVariables("SCRIPT_NAME") but that didn't include
the parameters. i.e. it just returned the default.asp

View Replies View Related

Current Connection

Does anyone know where I can find information about Reading current
connection value from performance counters into ASP page. I wanted to
know how I can call the current connection value in my ASP page

View Replies View Related

Current Page

how to print or get the name of current page using ASP

View Replies View Related

Using ASP To Get Current Page

I'm not sure if someone has requested in the past (I know I've looked for a solution for a while) but I've just developed a very neat way of getting the current page name in ASP:

url = request.ServerVariables("URL")
page = right(url, len(url) - instrrev(url, "/"))

I've finally found a use for the instrrev function

View Replies View Related

Current Record ID

I've created a form whereby the user fills in there details into a datbase.Once there details have been entered into the database I want to show the Primary Key(there generated ID number).This is the code I have right now

<%
SQLQuery = "Select * from StudentReg"
Set GetDetails=MM_dbconnect_STRING.Execute(SQLQuery)
%>
<%=GetDetails("ID")%>

This however will only show the frist ID number in the database, not the one the user just entered. How do I get the current ID within the new record?

View Replies View Related

Current Grade

To cut down on maintenance,I'm tracking 500 or so students via their graduation year, rather than their current grade,so I don't have to go in every summer and ratchet up all the grades.

I need to allow the teachers to search for them based on grade(9, 10, 11, or 12).So what I need is to be able to compare the grade chosen on any given day of the year,and have the code figure out what grad year that person is in, assuming a constant of the 4 year plan, and do a SELECT * WHERE gradYear = 2009

The problem is that I could take the nowYear or something, but that changes half-way through the school year (stupid northern hemisphere) and I'm stumped on how to compare more complicated dates.

View Replies View Related

Get Current Date

i need a button or a link, that when clicked on, grabs the current date. It then puts this date inside a textbox.

View Replies View Related

Getting Current User In ASP

How can I query the current user logged on to the local machine and store the username, the first name of the person, and the last name of the person in variables?

View Replies View Related

Show Most Current PDF

I have a ASP page that when a user clicks a link it uses a DLL to stamp a .pdf with a watermark and then display the .pdf in there web browser using the Adobe Reader. This all works fine.

if a user views a pdf and then modifes it if they click the link again it still shows the old version of the file. They have to hit there refresh button to show the changes. How can I make it so my page always displays the lastest version of the PDF and not what is in the cache?

View Replies View Related

Current Page Url

How can I retrieve the current page url(and parameters/arguments) using ASP code? The current page is an asp search results page so the url includes the page name and the criterion(sorry I don't know what they're called) I had the 'post' method tag on the end.

I need to get it and store it so I have an easy way of getting back to this page at a click of a button a few pages down the track. I've tried using location and history but I'd like to manage it myself.

View Replies View Related

Current Recordset

ADODB.Recordset error '800a0cb3'

Current Recordset does not support bookmarks. This may be a limitation of the provider or of the selected cursortype. I am moving my webserver from NT4 using SQL to win2003 using SQL 2003. I get the above error when my asp page does teh line:

Rs.absolutepage = intCurrentPage

I tested teh value of intCurrent page and teh value is 1. Any ideas? The .asp Page works perfectly fine on teh old machine.

View Replies View Related

What's The Current File

Thingy to call to figure out what the current file is (ie: index.asp)? I thought it was request.servervariables("something") but just can't find it .

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved