473,807 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Some of JPG files refuse to show up in the ASP page

Although this question does not belong in here, I hope someone help, as I do
not know where to send it, but someone here might have come acros similar
problem:
Some of JPG files sitting in the same folder show up OK on an HTML page,
while the other do not as if they are not there or their name is misspelt.
Tried low-upper case in an ASP page, and in the files names - same result
Then I noticed that the same files do not show up in the preview pane in the
Windows Explorer althought they still are described by Windows Explorer as
valid JPEG files.
These "wrong" files are not necessarily bigger then the good ones and in
Microsoft Photo Editor they all (good and bad) show up well and they all are
118 Pixels/cm and True Color (24 bit)

What might be wrong with these files?
If there is not direct answer, perhaps spmeone recommend me a correct
newsgroup?

Jul 19 '05
13 3050
So the problem is with the compression?
a
"Roland Hall" <nobody@nowhere > wrote in message
news:e2******** ******@TK2MSFTN GP09.phx.gbl...
William...

I tried loading the files that do not display by themselves in the browser
by calling them by name and they do not display that way either. So, I
downloaded one of the files and tried to display it locally in IE, still
nothing. So, I opened the image in Microsoft Photo Editor and resaved it.
Now it shows the image.

Uncompressed the file is almost 2Mb. Compressed the original version was
314Kb and now 35Kb. The image settings are still the same, True
Color(24-bit), width: 666px, height: 999px, uncompressed bytes: 1996002.

You can see them here: http://kiddanger.com/lab/electrolube/images.html
...or at least see the new revision.

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.

"William Tasso" wrote:
Roland Hall wrote:
"William Tasso" wrote:
> aa wrote:
>> I am sure it has nothing to do with html/asp code as the same code
>> works for one image and does not for another. Just have a look at
>> the live page in question:
>>
>
Since the files just do not display instead of generating an error, it
appears they are actually there but they're zero bytes.


The images appear ok in Opera


Jul 19 '05 #11
aa wrote:
...
The rest image tags are formed like that

<img src='apl400-1.jpg' border='1'>
It's more usual to use double-quotes, but of course I can't find a reference
now so I'm not sure if this could be causing an issue. don't forget the ALT
attribute:
<img src="apl400-1.jpg" alt="">
which seems perfectly OK to me, escept a missing closing "/" which
should not affect the image display.
The closing / is only required in XHTML documents. As you haven't specified
a DTD I suspect the browser should just ignore it, but you can never be sure
how browser error-correction code is implemented.
Yet the image fails.
Works in Opera
So the problem seems to be with the images?


Could be. Have you tried using different images? or forcing changes and
re-saving those?

btw: & is not valid for use in URLs

Here's a valid[1] page (pulls images from your server).
http://williamtasso.com/usenet/electrolube.html Seems to indicate that there
is nothing seriously wrong with your markup. It partially works in IE6 and
Mozilla (as does your page) but Opera successfully pulls all images
requested. I'd start by resaving the images. btw: do they have to be so
large?

[1]
http://validator.w3.org/check?uri=ht...ectrolube.html
--
William Tasso - http://WilliamTasso.com
Jul 19 '05 #12
Have you tried using different images? or forcing changes and
re-saving those?

Yes, As I said, some images for the same folder within the same <img> tags
work fine. For example, on the same page which I earlier indicated
dca200h.jpg show up well

"William Tasso" <ne****@tbdata. com> wrote in message
news:OB******** ******@tk2msftn gp13.phx.gbl...
aa wrote:
...
The rest image tags are formed like that

<img src='apl400-1.jpg' border='1'>
It's more usual to use double-quotes, but of course I can't find a

reference now so I'm not sure if this could be causing an issue. don't forget the ALT attribute:
<img src="apl400-1.jpg" alt="">
which seems perfectly OK to me, escept a missing closing "/" which
should not affect the image display.
The closing / is only required in XHTML documents. As you haven't

specified a DTD I suspect the browser should just ignore it, but you can never be sure how browser error-correction code is implemented.
Yet the image fails.
Works in Opera
So the problem seems to be with the images?


Could be. Have you tried using different images? or forcing changes and
re-saving those?

btw: & is not valid for use in URLs

Here's a valid[1] page (pulls images from your server).
http://williamtasso.com/usenet/electrolube.html Seems to indicate that

there is nothing seriously wrong with your markup. It partially works in IE6 and Mozilla (as does your page) but Opera successfully pulls all images
requested. I'd start by resaving the images. btw: do they have to be so
large?

[1]
http://validator.w3.org/check?uri=ht...ectrolube.html --
William Tasso - http://WilliamTasso.com

Jul 19 '05 #13
<aa> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. ..
So the problem is with the compression?


It appears that way. Either IE is more strict or buggy reading the image
file or the other browser is more liberal. I really don't know which is
which.

I have seen .jpg files with different compression strengths from different
graphics programs and some would load in some files or some would get
corrupted and not load at all and then some, like LViewp1b could load the
part that was good and then just display background where the rest of the
image was corrupt or where the corruption was first noticed. I don't think
it could recover past it by showing just part in the middle. I've never
seen this with IE except when the file was corrupt and it would error out.

As far as what you're seeing, I've only noticed it when the file was zero
bytes or the image was on a *nix server and the filenames were
case-sensitive and I had a typo, until now. So, you might want to
investigate further with the graphics app you're using and see if you can
make some setting changes or consider running the file through a different
application, until you can find out what the cause is.

At least you know it's not your code.

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
Jul 19 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4853
by: Sharon | last post by:
Hello, Annoying problem on a server with IIS 5. I can open htm, html, gif, jpg, all files except asp files. The message when opening an asp file is: "The page cannot be found... blah blah blah HTTP 404 - File not found"
16
2183
by: Voetleuce en f?nsievry | last post by:
G'day I have some pages written by a bot and much of the code does not concern the visible content on the site. I'd like to strip all the codes that do not affect or influence the visible stuff (although I'd like to keep the nested tables, if possible). Some of this can be stripped using Search/Replace, but some of it contains codes which differ from page to page. How many pages? About 750, totalling 80 megabytes of data, which I'm
3
1799
by: Fabrizio | last post by:
HI, I'm trying to create an aspx page that lists all files that an user can download from a site simply clicking on the link. There is any example on the web? Thanks, Fabrizio
2
2392
by: Glen | last post by:
As I understand it, when the first page of an application is accessed, all ASPX/ASCX/etc. files in the same folder are compiled using the JIT compiler. Is there a way to turn this feature off? As a developer, I am sometimes working on a single file that is in a folder with many (dozens or hundreds) of other files. After rebuilding the project, I want to look at that one ASPX file. However, I must always wait for all the other ASPX...
13
4075
by: Necqui Teja | last post by:
Are there any utils/tools to zip files at runtime in C#? Thanks Necqui
7
2583
by: zeecanvas | last post by:
Hi, First of all: Yes, I know global variables are bad, but I've a huge amount of legacy code, and I've to maintain it _as_is_. I'm maintaining a big program. I moved all (program-wide scope) global variables outside of the files they were defined it, and created some files that just hold global variables definitions (just variables, without any function definition). So, depending on the purpose/category of variables, they're defined...
11
6526
by: ABC | last post by:
How to rename files with support wildcard ?
2
2785
by: nja2222 | last post by:
I would like to create a page for my clients to login and check for updates on their accounts. Then I would like to create a page where my employees can login and make updates, specifically new file uploads, to the clients accounts. I have seen similar sites everywhere, such as bank websites, USPS site, et cetera. What is required to accomplish this? I'm trying to do this with the PHP, MySQL and Adobe CS3 Master collection's 'Dreamweaver CS3' ...
10
1394
by: Ty | last post by:
Hello all, I have built a site in VS 2008. using IIS7. Site works fine. So I publish to a local folder. I then go into IIS7 and add a virtural directory pointing to the compiled folder and make it an application. When I try to browse the site from IIS7 I get an error that a file was not found. This file is the aspx.vb page of the page I am loading which in the published site has been renamed to App_Web_50e5-xmr.dll and placed into the...
0
9720
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10112
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.