ADODB.Stream 'format Error: Not A Pdf Or Corrupt' Only On Large File

I use the code below to authorise the download of certain files.
Thus, instead of linking to the file in a wwwroot directory, I link to
this code with the filename as a parameter, and the script streams the
file if the user is authorised.

This has worked fine on PDFs, DOCs, XLS, etc. until today, and 18MB
file presents the error message 'format error: not a pdf or corrupt'.

Is there a file size limit, or a default that needs overridden? Any
thoughts? Code:

View Replies


ADVERTISEMENT

Adodb.stream

After the latest security update, is it still possible to use adodb.stream
on the server side?

View Replies View Related

ADODB.Stream

We have an application, written in ASP, that uses the ADODB.Stream to be
able to open files and write byte arrays to the Response object. If one of
our administrators patches the web servers this application runs on in
Windows Update, I'm screwed, right? You've essentially just disabled this
COM object, for not only its evil purposes, but its useful ones?

View Replies View Related

ADODB.Stream

I am using ADODB.Stream for downloading the files on user machine. The code works fine when filesize is less than 10 MB. But if file size is more than 10 MB then it doesn;t get download. Can anyone tell what is the problem. I have to user some different component.

View Replies View Related

Reading Pdf (ADODB.stream)

I am trying to secure .pdf files by having users login and based on UserID, allow access to certaing .pdf's.

I have tried it a few different ways using different file types and their corresponding contenttype and nothing happens. I even used the same example from microsoft.com and I get "page cannot be displayed"....

View Replies View Related

Binarywrite And ADODB.Stream

In Windows 2000 IIS 5 SP3 this:

http://support.microsoft.com/?scid=kb;en-us;276488

is not working. No error but wants to save binary.asp to disk and can't. I have it in a High Isolation Application.

View Replies View Related

ADODB Object Stream

I'm trying to create a page that uploads a file. I get an error message saying ADODB object Stream is not available in my server. How do I upgrade my ADODB library?.

View Replies View Related

Funny Results With ADODB.Stream

I am using the code below to ensure that a download will be sent to the user as a save/open dialog box and not open up in the browser. However I get one of a few different issues.

1. Sometimes the when you click save the box just dissapears and you never get to choose where to save it. And then don't get the file!

2. If you get past the first problem (seems to be unique to pdf's) and can select where you want to save the file, it then doens't actually download the file and the box just dissapears again!

3. If you get past both of these, documents are often corrupt!

Any idea what could be causing these? The server has MDAC 2.8 installed, and it works slightly better on our local testing server Win2k than it does on the live Win2k server! All very odd! Code:

View Replies View Related

ADODB.Stream And BinaryWrite Problems.

I`m writing a little routine that captures the data from a form submit (ie a picture) and then at the back end the asp will saved it back out into a file on the server.

I can capture the file fine and display the binary data to the screen.. but now I`m trying to write the data back into a file on the server. After a bit of searching around on the net I found that most people where suggesting using the ADODB.Stream functions.

So this is what I've got but for some reason when I go to write the binary variable it complains. Code:

View Replies View Related

Download With ADODB.Stream Object

I have an ASP page that downloads file with the ADODB.Stream object.
I've found that if the user click cancel in the "Save file as" window or
during the downloading, the download is no more available, the page hangs
over and and the session have to be closed. (In some cases you have to Cancel
more than one time the download process to rise up this error).

I've experienced this problem, as a user, with many major webmail services
too!

View Replies View Related

Using ADODB.stream To Get Results From A Url Query

I have an asp page that needs to display the string that is returned from a
cgi file.

As an example, if you enter http://mydomain.com/mycgi.cgi?98127398 in to a
browser, it will display YES or NO

I need to have my asp code query this url, get the resulting string, then
act upon it (basically use the answer to display a nice big tick or a big
cross). Code:

View Replies View Related

ADODB.Stream LoadFromFile Failes In ASP Application

When trying to load a file using ADODB.Stream, LoadFromFile method I get the following error:

Safety Settings on this computer prohibit accessing a data source on another computer

I'm running windows server 2003. I have the site security set to "Local Intranet"
Any Suggestions?

View Replies View Related

ADODB.Stream Default Filename Wrong

I use the Stream method to serve certain file types to the user. If the
type is pdf, it opens in the browser fine. My problem is with those
that the browser doesn't have plug-ins such as ppt, word, etc. it
prompts to choose Open/Save/Cancel and defaults the filename to the ASP
page serving the content. ie. BinarySend.asp -> BinarySend.doc,
BinarySend.ppt.

If I use
Response.AddHeader "content-disposition", "attachment;filename=" &
sFileName then it defaults the filename to the name I specify but
always prompt a download instead of opening directly.

Is there another way to default the filename in situation like this?

View Replies View Related

ASP, DOC, RTF, ADODB.Stream, ContentType, BinaryWrite, And ReplaceB()

It involves using ASP/VbScript and ADODB.Stream to read binary data from a *.DOC or *.RTF
file and then send it to the user with Response.ContentType and BinaryWrite.

Everything works fine until I try to Replace() certain strings in the *.RTF
file with my own data. I'm assuming Replace() is choking on the binary characters, or
incorrectly thinking 0x00 values are marking end of string. Code:

View Replies View Related

Read Binary Record From Database With ADODB.Stream

I wanna read binary data from database with ADODB.Stream object. So I wrote code..

---------
<%
query = "SELECT * FROM Categories"
adoDB.DefaultDatabase = "Northwind"

adoRs.Open query, adoDB, 1

Set rec = Server.CreateObject("ADODB.Record")

'read [Picture] column.
rec = adoRs(3)
------------

And the 'rec' TypeName() is 'Byte()'

But I can't get it to ADODB.Stream. How Can I do? Or Can I read binary column to another way?

View Replies View Related

File Download Stream

i want to be able to write an asp.net function to download files.

For example, brinkster.com hosting service has a COM component that allows a stream of binary data to the client from the server so that the client will be prompted to download the file.

here is the syntax:

Set Upload = Server.CreateObject("Persits.Upload")

Dim SysFilePath
SysFilePath = Request.QueryString("filePath")

' Parmeters:
' 1. Path to file to download
' 2. Yes, build content-xxx headers
' 3. Use this value for Content-Type header
' 4. Include the word "attachment;" to Content-Disposition to force download

Upload.SendBinary "premfs3sitespremium8jaydakissx22webrootmyFile.txt, True, "application/octet-binary", True

How can I do this in asp.net without using the "Persits.Upload" COM object?

View Replies View Related

File Stream Object

I am trying to create a text file by using the following code. But it's not working. It just loading the page that's all.

<%
DIM fso, NewsFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set NewsFile = fso.CreateTextFile("c: est1.txt", True)
NewsFile.WriteLine("Hello World!")

NewsFile.Close
%>

View Replies View Related

Stream File To User

I have a page on our intranet that is supposed to stream an Excel sheet to the user.

View Replies View Related

Gibberish Pdf File Displayed If I Transfer Using Bit Stream

The following code was suggested by one of the users in this newsgroup when a pdf file was requested by a user from an asp page. I used the similar code in my page and the very interesting thing is when the pdf is displayed on the fly, the whole page is a gibberish code in stead of a normal pdf file. But it displays fine if I just use a link to a file on the page. Can you tell me what's the possible reason will cause this problem?

View Replies View Related

Is It Bad To Have A Large GLOBAL.ASA File?

It seems to me that I generally use two types of Functions:

Type #1-Ones that any page on my site might use
Type #2-Ones that only a single page would ever use

Logically, it seems that I should put the Type #1 functions in the GLOBAL.ASA file and the Type #2 functions in the pages that use them. I would like to, however, just go ahead and include ALL of my functions in the GLOBAL.ASA file.

Comments on this? Is this a good idea?

View Replies View Related

ASP.NET Large File Transfers

I am attempting to use the technique in KB 812406
(http://support.microsoft.com/?kbid=812406) to transfer
large files via Response.OutputStream.Write.

It works GREAT in in debug mode. But whenever I set
debug="false" in the web.config file clients get cutoff after about 1.5 minutes.

There is no error raised the client simple gets an incomplete file.I've tried playing around with various timeout settings in web.config and in IIS with no luck.

View Replies View Related

Large File Uploads

I have a site that i upload files to that are no bigger than 100MB. we upload about once a day, and use FTP...... we would like to be able to do it from the site itself.


any idea where i can get a script? i cant register components with my
hosting company i dont think. i go thru godaddy.com

need a good free asp upload script. cant find any that work. Huge ASP Upload
doesnt even work on the demo page, let alone on my own page

View Replies View Related

ASPFileUpload Error On Large Files

I'm using Microsoft's ASPFileUpload routines and all works fine as long as my files are smaller than about 200K. For anything larger than about 210K, I get the following error:

Error Type:
Request object, ASP 0104 (0x80004005)
Operation not Allowed

On the .Upload method. Has anyone else experienced this problem with
ASPFileUpload?

View Replies View Related

Error Transferring ADODB.Recordset Error '800a0cc1'

I have recently transferred an update asp page from my local test environment (System 1) to another environment (System 2), and get this error message:

ADODB.Recordset error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name or ordinal.

/user_admin.asp, line 40

Here is the deal:

1. Both systems have the same setup (Access db, etc)

2. On System one, the page works perfectly.

3. All the other files from system 2, which are identical to the ones on System 1, work perfectly.

4. In fact, I use the same code (for user authentification) in ALL my pages on both Systems 1 and System 2. They also work, except for the one script which I recently tranferred.

Anything I might have overlooked?

View Replies View Related

CDOnts.newmail Attachfile Don't Work When File Is Large

I am using the CDONTS.newmail object to send file as an attachment so I
used attachfile method. it seems the attach file wont work if the file size
more than 100 KB , does anybody know if there is a size limit or where to
change it I am using the SMTP server included with IIS 5.0.

PS when file is sent, it will show on the EMAIL as an attachment only with 0
bytes.

View Replies View Related

Error ADODB.Recordset Error '800a0bcd'

I'm getting this error :

ADODB.Recordset error '800a0bcd'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. Code:

View Replies View Related

Error :: ADODB.Connection.1 Error '800a0bb9'

I have put a chat site on the web that I have got off here a while ago. It contains an access db. I am now getting this error ;

ADODB.Connection.1 error '800a0bb9'

The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another. /TheChatroom/includes/OpenDB.asp, line 5

It works on my PC through IIS 6. Does anyone know what is wrong?

View Replies View Related

Error: ADODB.Connection Error '800a0bb9'

The error I am getting is the following: ADODB.Connection error '800a0bb9'

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. Code:

View Replies View Related

ADODB Error

I'm working on a lab for school, and I'm getting the following error while trying to use my ADODB Recordset.

Error Type:
ADODB.Recordset (0x800A0E78)
Operation is not allowed when the object is closed.
/Lab2/Webpages/Lookupraceinformation.asp, line 47

My SQL is working, and the DLL I created in VB is passing values to the ASP page, because I assigned a value of 1 to the function that is to pass the recordset to the ASP page, and when I did a Response.Write, the 1 showed up on the page, so I'm baffled with this one.

View Replies View Related

Corrupt Zip - Files?

Some people who try to download a zip file get a corrupt file every time
again. While others don't have a problem at all. There are a few bytes at
the end of the file (6Mb) that are wrong and WinZip always gives the same
CRC error by different clients/downloads.

Downloads with a download accelerator don't seem to have this problem.

I really like to know how that's possible. Is it the cache of IIS that has
some wrong bytes? If so, how is it possible that other downloads at the same
time are fine?

View Replies View Related

Corrupt MSAccess DB

weve gotn an access database running our intranet and its gone down.the in build trpair function doesnt work but we can still access the data through ASP,just not through the Access interface?

it says theres a jet error as someone else has the DB open but they dont

is there anyway we can duplicate the tables,data and relationships in an other db?ive tried some of the large scripts available for access that are supposed to do this,only no success yet

View Replies View Related

ADODB.command Error

I'm trying to run a stored procedure and access data to read data. I'm getting an error with the ObjComm.CommandText when it's calling the Stored procedure.

ADODB.Command error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.....

View Replies View Related

ADODB.Field Error

I get this error:

ADODB.Field(0x80020009)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

I know that I got this error because there is no NT-ID for that employee in the Employee table.So how do I display a error message to the users if there is no NT-ID for that employee?

View Replies View Related







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