Response.BinaryWrite For One JPEG Is Very Slow

I am using Response.BinaryWrite to display JPEG's to the browser. The
problem is that in IE, one particular JPEG is loading very slow. Normal
JPEG's take a few seconds, but this one sometimes takes up to 30 seconds.
THe weird thing is that if I refresh really quick, the JPEG appears for quick
second, and then the new Response.BinaryWrite kicks in. So, it looks like
the browser has the image, but for some reason it is not finishing loading it
into the browser. Code:

View Replies


ADVERTISEMENT

Response.BinaryWrite

I have a problem when trying to do response.binarywrite for files > 64kb. I am reading a blob data from the database, this blob data contains files. To read from database ADODB.Recordset is used. I am using the following code to write on to the browser:

Response.ContentType="application/vnd.ms-excel"
Response.BinaryWrite rs.fields(blob field)

This works fine when the blob data is < 64 kb but when this limit exceeds then an error is thrown. how I can go about and read files > 64 kb ? Is there a maximum limit on the size of the file that can be used with response.binarywrite?

View Replies View Related

Response.binarywrite Cuts Some Of The Image

when I upload images to a db, everything seems to work smoothly. But when I'm trying to view the page, it seems that there is sth wrong with images - all of them are cut at the bottom. The image size is correct, the filesize is ok, but the bottom part of the image is blank...

View Replies View Related

Response.binaryWrite Chunks Of Data

I made a posting a while ago regarding doing a binarywrite of a large
file in chunks and got a lot of helpful responses. I was able to make
it work then. Unfortunately when the project is being tested its not
working and I am getting some weird results when testing. A month ago I
was able to stream a file of size 80Mb and it worked like a dream

Yesterday it would not work on the same file, but would stream smaller
files. The largest file i was able to stream yesterday was 55.5MB.
Today it wouldnot work with the 55.5MB file but only with a file of max
size of around 54.5MB. I can't seem to figure out what is causing this.
Because the code is the same. I actually get no error, with the file
size i mentioned i get a popup window within seconds for the file
download. But anything greater than that file size (max size as of
today 54.5) even if it is an MB more i get a blank screen but it never
pop ups the file download box Code:

View Replies View Related

SLOW Response Time

Anyone know what might cause my ASP to start running slow? It's been running fine until today. Today when I pull a repost, it takes forever to for the code to create the page.

When I go into the Access database itself and run the individual queries, they run just fine. It only takes a fraction of a second for the data to apprear. When I run the ASP code to see it on the webpage,it takes around 30 seconds!

Anyone got any recommandations on what I need to check? It just doesn't make any sense that all the sudden it runs flat out SLOW.

View Replies View Related

Response.redirect & Server.transfer Very Slow

On my WinXP machine, with both IE6 and Firefox 1.0, response.redirect and server.transfer take about a minute. But on my WinNT machine with IE5.5, it works instantly. What's going on?

View Replies View Related

Save As Jpeg

beside save as htm and txt in IE , can i save as jpeg or other formats ?

View Replies View Related

Converting Rtf To JPEG

rtf files cause so many troubles,i.e.,allow the users to download the files, slow loading,incompatible with other browser, and so on. Do you think I should convert them to JPEG files to embeb them into HTML?

Once converting JPEG,it is easier to programming in HTML(i.e.,just add the image tag),load faster,and prevent the user from download the files?

View Replies View Related

How To Get The Size Of A Jpeg Image ?

How can I get the height and width of a jpeg image?

View Replies View Related

Returning JPEG File

I have a JPG file residing on my server with an ASP file. I wish to call the ASP file and have it return the JPG file. I do not want to load the JPG into some kind of ASP Image Processing Object. I just want to return the file.
I have already identified the content type with Response.ContentType = "image/JPEG" but can't get away from this text-only read/write system.
I haven't programmed ASP in years and have since moved onto PHP, so I am having trouble doing some of the basics

View Replies View Related

ASP CODE For Jpeg Image Download

i want to write code for downloading Jpeg images from a hyperlink click when i passes jpeg images then browser opens it in the window rather then showing download window

right now the only way through which i m able to perform this is by zipping these jpeg images code is foll.

<A href="images/images.zip">Download images</a>

View Replies View Related

Extract JPEG Header Information In ASP?

Im currently making a photo album website which has an ASP page to look in an images folder for any available jpg images.

What I would like is to extract the jpeg data such as width, height, title, bit-depth, comments etc.

All the fields can be found in windows xp if you right-click the image and then click Properties. Select the "Summary" tab and there is where all the jpeginformation is stored and can be edited.

View Replies View Related

Persits.Jpeg SaveAs Upload?

I'm putting a website on a different server to what I normally use and I've had to adjust from Persits.Upload to Persits.Jpeg. I'm not sure what I'm doing here? My code works fine on the old server. Code:

View Replies View Related

.BinaryWrite

it is possible to print binary content via response.BinaryWrite!
But is it possible to determine as a value?
(I get content from another site, they send to me wrong character because of the chracter coding.I want to get it as binary.I can already get, but I can't edit

View Replies View Related

BinaryWrite

help me regarding the 'Response.BinaryWrite' I am making one web application where I need to store some of client logo's and others images. In this context I am able to store images into .DB file and even able to display into browser to. But it seems to be 'Response.BinaryWrite' does not support 'html/text' hearder if you user 'BinaryWrite'? I had tried many way to do so but its does not write binary if pages content <html><body> tag's.

I could had done it by uploading images into disk, which is quite simple method and faster too<img src"images/<%=filename%>.jpg/gif"> by having unique file name. But I am not the person who is going to monitor it as user itself has a persmission through the web to have there image as they want to give file name etc. Also I can't have individual directory for each users as if tomorrow users grow then what I suppose to do?

View Replies View Related

BinaryWrite And Firefox

I am using Response.BinaryWrite to write a PDF to the browser. Everything works great on IE and Safari but when I try to use Firefox the browser hangs. The title bar says application/pdf but nothing ever shows up. Going directly to the pdf works fine but unfortunately am unable to do that in the long run and must use BinaryWrite.

View Replies View Related

Displaying Img From Access Using BinaryWrite

I have a commercial database written in access and I'm trying to display some images, jpegs, stored in the DB on web page. My code is as follows:

Response.ContentType = "image/jpeg"

sql = "SELECT PartImage FROM Parts WHERE ShortID='AAPTM01'"
Set rs = AMConn.execute(sql)
If not rs.eof Then
PicSize = rs("PartImage").ActualSize
if PicSize > 0 then
Response.BinaryWrite
rs("PartImage").GetChunk(rs("PartImage").ActualSize)
end if
End If
set rs = nothing

All i get on the page is the image not found icon with the red cross in IE.
What could possibly be going on?

View Replies View Related

File Does Not Begin With %PDF - BinaryWrite

Been struggling over this issue for a long while. We store PDF's in our SQL Server database. And I do a BinaryWrite to display the PDF.

It works for me without issue, on FireFox, IE, and Opera! But we are receiving feedback that some users are receiving the file does not begin with %PDF message ....

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

BinaryWrite, IE And Adobe Reader 6.0

I'm having some problems with the Reponse.BinaryWrite, IE 6.0 and Adobe Reader 6.0. When I try to write a pdf-file to an IE browser with a Adobe Reader 6.0 installed then it just displays a blank page and the earth on the top rigth corner keeps turning like it haven't read the pdf-file (for 10+ minutes on a lan).

If I change the settings on the Adobe Reader 6.0 to not open in a browser, then it works fine. If I use Mozilla 1.4 then it opens fine as well.It works fine as well with Adobe Reader 5.1. The code looks like this:

[Some code that places the pdf-file in a byte array called vntStream]
Response.Clear
Response.ContentType = "Application/pdf"
Response.BinaryWrite = vntStream
Response.end

I have tried to place a Response.Flush after the BinaryWrite, but it just makes the Adobe plug-in say something like "document corupted".

View Replies View Related

Updating Browser While Do BinaryWrite?

Here is a snippet of some code that writes/exports a Crystal Report to an I.E. Browser (this is on an intranet using ONLY I.E). Code:

View Replies View Related

How Can I Output TheResponse.BinaryWrite

How can I output the Response.BinaryWrite content in an asp page that has
html tags inside?

I need to write the binary data to the client browser inside the html tags.

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

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

How To Break Up BinaryWrite File Into Multiple Chunks

I am doing a binaryWrite to allow users to download files. The problem
occurs if the file is too big. Some of the files i have are close to
100 megs. I read on msdn that if the data is greater than 4MB it is
advisable to break it up into multiple chunks Code:

View Replies View Related

Slow Site

I'm working on a site that is just *extremely slow* on certain pages that are very database intensive. Now... I've worked quite a bit with databases before - and this is different. It's ridiculously slow.
I've looked through the long ASP script (it's a calendar listings page, with some more db stuff under the calendar).
There's not really anything else I can do to fix up the code. I've consolodated SQL statements, converted everything to GetRows... closed my objects immediately... etc. I've also added indexes to the db fields in my WHERE clause of SQL.
The page isn't *that* complicated that it should take so long. Sometime it even time-outs.
I've tried so much, and nothing is working.
Could it be that I need a dedicated server? Something I'm missing in the code? (It's really long so I'd prefer not to post it if possible but I might).
MySQL

View Replies View Related

Tooo Slow

I need help with a database problem in asp. When the page runs is is timing out.
THere are 18000 records.

Is there something I can do to make it faster or run on the server side before display?
I have set the timeout to 2400 and it is still timing out

View Replies View Related

Localhost Slow

I'm trying to surf on a website on winXP, but IIS response is very slow. It doesn't load a lot of images (red x). Besides, it alerts always there's no connection (from each page to the following), asking whether I want to connect. The browser keeps waiting for images then it fails. What can I do?

View Replies View Related

The Page Is Too Slow

I developed a page that takes from the database based on a select information and displays that on the screen. My problem is that the display proces is very slow, it takes time to display the results. Code:

View Replies View Related

Loading Too Slow

in what condition will lead the the ASP page run too slowing.

View Replies View Related

Slow With Authentication

I've set up a form which sends info to my email address usind CDO 2000 w/ authentication which takes about 10 seconds for the message to get sent.

View Replies View Related

Getstring Really Slow

I'm connecting to an Access table with 100+ rows of data of approx 20 columns wide. I'm using getstring to "Quickly" display it in a table, but it's un-useably slow.

View Replies View Related

IIS Is Really Slow After IE6 Upgrade

I have a development box running Windows NT Server 4 SP6a with all the
latest hot fixes and patches. Up until a couple of days ago, it was
running IE5.0 without problems. I upgraded to IE6 SP1 and ever since,
whenever I access the default ASP web site, it takes ages for the first
page to appear. After that subsequent pages load fine. Code:

View Replies View Related







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