I have an exe file on a server that reads an XML file ( as a parameter) and generates a new file for downloading. However, most servers won't allow an exe file to create the new binary file. Is there any way that I can execute the exe file and have it download straight to the client instead of saving to the server?
Here is a written descripton of my webpage. One frame split down the middle. The left side is the menu and the right displays what is selected from the menu.
the user selects from the menu and on the right, clicks on "download image" link. the user is presented with a download dialog box. The user saves the image and when it is completed goes and selects another item from the menu. But this time nothing happens.
It is like i have to refresh the page before anything works again. It is like it is stuck on the ASP binary stream file that forced the download.
I am working on an app that needs to stream binary files(such as PDF or WORD docs) to the browser. I cannot just pass a URL pointing to the file directly. I've tried the following in an ASP file: Code:
where strData contains the binary data content of the WORD file in a string variable (for PDF, I would set the content type to "application/pdf"). However, the browser displays the data itself, rather than hosting the doc in the appropriate browser applet.
I need to do online streaming multimedia file on my web portal, just like those online portal that selling MP3. User need to click on the preview link to stream the audio file to listen before they decide to buy the file or not. How do i link my audio file in my web server to allow it to be stream? Totally lost on this function,
I have the following code which works fine downloading smaller files, the trouble is most of the files to be downloaded are large. With large files it just returns a HTTP 500 error. Code:
I'm having a trouble with HTTP file transfer. I use an ASP file to provide controlled access to some files and stream them back to the client by adding the "content-disposition: attachment" header.
This usually works perfectly, but I've noticed that if I try to stream a ..RAR file, the client browser does not show any "open/save" window (it simply ignores the file transfer), and .RAR appears to be the only file type which causes it to behave this way. Can anyone explain me what this means or what it may be due to?
I use MS IE 6 and IIS 6... and the transfers are all HTTP/1.1 of course.
i have a problem with streaming files. i want to force a download box to appear, which works fine. however it only works for files with a size of <4mb, anything else and a 0byte file is downloaded. the web server uses IIS6.
is there something i can change to allow bigger files to transfer? Code:
When I run an asp script, I can view the contents on the screen in pdf format. But instead of displaying the information to the screen, I want to be able to save the same information into a binary file with a pdf extension. Does anybody know how to do that?
I have listed the coded that writes it to the screen, but now want to be able to write the information into a file ....
I'm using ASP to generate an RTF (rich text) file, via the FSO. No problems with text, but when it comes to inserting images, the files have to be embedded as either binary or hex.
Try as I might, I can't get binary to work (Word b0rks trying to open the resulting file). When I create a simple RTF in Wordpad and then view its source, Wordpad seems to be embedding the image as hex. Does anyone have a suggestion as to how I could read an image file off the disk in hex format for writing into my RTF?
I need to extract some blobs (chm files, actually) from a database and save their contents on the server (recreate chm files).
I tried to do it in several ways (writing the contents to a stream and save the stream to file, writing the contents directly to file, I couldn't figure out how to do it by using the class ADODB.File) but none of them worked.
This works with most every file type I've run across (jpg, gif, doc, ppt, xls, etc..). Normally when the user tries to access a file, a download window pops up asking the user whether he/she wants to open or save the file.
However, when the file is a zip file, the user just receives a blank screen instead of the usual download window. Has any one run into this problem? If yes, how did you resolve it?
i have an ASP (iis v5.0) application that generates a pdf file and this file is saved to the server. it is saved in a location not available to web users. i have an asp script (below) that sends the pdf file to the user as a binary stream. So that the user specifies which file to upload, the script performs some security checking and if it passes, it sends the pdf document.
This works great in HTTP, but i want to do this using SSL. When i try the same thing over SSL, it gives me a 'File Download' dialog box with Open, Save, Cancel, More Info. The file name is the name of my script and file type is 'Adobe Acrobat Control for ActiveX'.
When i click Save or Open i get an error message: Internet Explorer cannot download [scriptname] IE was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
The key to all this is that the report can change and i need to make sure the data doesn't get cached along the way. Hence there are a bunch of header manipulation commands included in the send function. Code:
I have one EXE file that customer need to download from my website. But I have one text file of Max 250 bytes of text in in that I want to append to the END of the Binary EXE file and give that for download to user. How can I do that. Please suggest. I think we need to go for some BinaryWrite kind of procedure using ADO Stream.
I'm trying to setup an ASP page to POST an image across to another page- essentially simulating what a browser does when you use <input type=file> in a HTML form.
I'm able to correctly setup the headers etc and do the POST, but I'm unable to include the binary data of the image.
The only way i've been able to do it is if I base64 encode the image. I'm using MSXML2.ServerXMLHTTP to do the POST, and I can't seem to do the .send with a form body that includes the binary data of the image. Code:
I would like to ask something regarding my project. i've been planning to develop a website using asp code for streaming multimedia features.
unfortunatly i have zero knowledge bout all this things that needed. can someone give me a rough guideline abt what should i do step-by-step. such as what database should i use. how can i store or create a database that can hold my multimedia files?
I have a page which allows the user to open one of several spreadsheets by streaming the XLS to the client.
On my development site, everything appears to work fine. On the live site, it works fine for the vast majority of users, but not for my colleague & I.
When this page is called with the correct inputs, the standard Open/Save/Cancel/More Info dialog should appear. In the dialog, it gives the following details:
Filename: Gothenburg Sweden.xls File type: Microsoft Excel Spreadsheet From: Servername
Clicking on open, means that the file will be opened in the local copy of Excel; this works for most people, except one colleague and myself. In our case, after clicking on Open, we get the following error msg:
"Internet Explorer cannot open travel.asp?journey=1 from <servername> Internet Explorer was not able to open this internet site. The requested site is either unavailable or cannot be found. Please try again later."
i used active x plugin (quicktime), in source file of the plugin i placed the code "Myservermyvideovideo.mov" but when i browse the page, it cant view the view, i used iis6.0. ider an addtiional code on this when retrieving the source from a network?
I've got a particular project to do and because of my very basic understanding I'd appreciate being pointed towards a relevant example. Basically I want to have my client side stream the contents of an XML using SOAP to a webserver.
I don't want to attach an XML file, rather just stream the contents. I have to write both parts. There must be good tutorial around somewhere.
does anyone have a good way of streaming video on my site? I guess it doesn't matte what format they are in, is there something which kicks off media player?
neeeded some advice and code snippets on trying to stream a video file in ASP. I know i can run that video file in flash file and then run it in asp but i dont intend to do that. I need to use only ASP.
I'm about to venture onto a new project of developing an ASP Page that captures images from a streaming web camera, and displays them (refreshs) the image every 15 seconds.
The question I have, is it possible to capture images (every 15 secs- from the webcam on the intranet) and store that snap shot as say a .jpg file in a folder, and then have the ability to continuously add images to this folder, so at a later date you could develop a system that would display photo after photo simultaneously, fast motion of the project in action.
We are using ASP pages and the response object in conjunction with the binarywrite method and a custom com dll in order to stream files back to users. All works fine, except mhtml web archives(*.mht or *.mhtml files) . When we stream an mhtml web archive back to the user we see the actual file inside the browser window and not the web archive document the way it should be displayed.
We are setting the content type property to message/rfc822 for mhtml files. We also set the content-disposition header ( like this content-disposition: filename="mytest.mht" ) This file opens up fine if we place a direct link to the file, however exposing a directory of files is not an option available to us.
We have also created a cgi in c that does the same thing as the ASP however to no avail we still get the actual contents of the file and not the mhtml document. This happens on both IIS 5 and 6. Any suggestions???
I am working in an intranet/extranet application in which the user should be able to see some documents (specially doc and pdf). These documents will be stored in a safe place in the server preventing anybody from downloading them directly from the URL.
In order to achieve this, I have made an activeX component which takes the original file and stream it to the client. I have basically two questions/problems.
First, is there a way to manipulate the document generated dinamically in order to change the way it is displayed in the browser(zoom factor,etc)? By default it depends on the client configuration. Maybe I could use an application.word object in the ASP but the problem is that I don't have the document in a file, I only have a stream sent from the server.
Another question is, how can I avoid the download dialog(open/download file prompt) on the client? I always want the document to be displayed on the browser. I know this is for security reasons, but can this be configured in some way through the IIS options for the web site? Code:
I have created a Spreadsheet object that I need to stream directly to a file through the browser. I can not save this file, that I would then stream, to the web server, even though this would save me a lot of aggravation.
Since Microsoft seems to see no value in providing any documentation for their OWC 11 components, I am just one of many developers groping around trying to find how to use this.
Does anyone know of a quick and easy way to stream a particular share price eg: msft into one's website....I have done a google search but I am not finding anthing specific...is there an asp solution?