473,545 Members | 2,048 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 #1
13 3023
Show the source code.
<aa> wrote in message news:O9******** ******@TK2MSFTN GP09.phx.gbl...
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 #2
<img src="p1.jpg"/>
<img src="p2.jpg"/>
The first one does show up, the other does not

"William Morris" <ne************ *************** @seamlyne.com> wrote in
message news:bq******** *****@ID-205671.news.uni-berlin.de...
Show the source code.
<aa> wrote in message news:O9******** ******@TK2MSFTN GP09.phx.gbl...
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 #3
I can't find anything wrong with the <img> code - even tried it on my own
server, though I've not seen putting the forward slash at the end very
often. <img src="pic1.jpg"/> as opposed to <img src="pic1.jpg"> .

What version of IIS?
What browser are you using?
If you use a different browser does the problem go away?
What ELSE is going on on the page?

<aa> wrote in message news:eg******** ******@TK2MSFTN GP11.phx.gbl...
<img src="p1.jpg"/>
<img src="p2.jpg"/>
The first one does show up, the other does not

"William Morris" <ne************ *************** @seamlyne.com> wrote in
message news:bq******** *****@ID-205671.news.uni-berlin.de...
Show the source code.
<aa> wrote in message news:O9******** ******@TK2MSFTN GP09.phx.gbl...
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 #4
William,
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:
http://www.electrolube.com/distribut...the_folder.asp

ASP code uses the FileSystemObjec t to read all the filenames in the folder
and then puts these names in the <img> tags so all the images in a folder
are supposed to be displayed. Of course all the <img> tags are absolutely
the same except the filenames. And yet some images do not show up.

Mistakes in the filenames are out of question, unless FSO somehow mis-read
them, but I checked them in the resulting HTML (view source) and everything
is correct including the letter case.
So ther problem is iof the files themselves

A
"William Morris" <ne************ *************** @seamlyne.com> wrote in
message news:bq******** *****@ID-205671.news.uni-berlin.de...
I can't find anything wrong with the <img> code - even tried it on my own
server, though I've not seen putting the forward slash at the end very
often. <img src="pic1.jpg"/> as opposed to <img src="pic1.jpg"> .

What version of IIS?
What browser are you using?
If you use a different browser does the problem go away?
What ELSE is going on on the page?

<aa> wrote in message news:eg******** ******@TK2MSFTN GP11.phx.gbl...
<img src="p1.jpg"/>
<img src="p2.jpg"/>
The first one does show up, the other does not

"William Morris" <ne************ *************** @seamlyne.com> wrote in
message news:bq******** *****@ID-205671.news.uni-berlin.de...
Show the source code.
<aa> wrote in message news:O9******** ******@TK2MSFTN GP09.phx.gbl...
> 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 #5
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:

http://www.electrolube.com/distribut...the_folder.asp

Page is missing a DTD, character encoding and title text. The images have
no ALT text.

FWIW: Opera has more luck, but even so has difficulty making an image out
of this: <img src='folder_con tents.asp' border='1'>

--
William Tasso - http://WilliamTasso.com
Jul 19 '05 #6
"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:

http://www.electrolube.com/distribut...the_folder.asp

I wouldn't assume there is nothing wrong with the code when I see this:

folder_contents .asp 1563
show_all_images _in_the_folder. asp 1345

....and the source is this:

<img src='folder_con tents.asp' border='1'>&nbs p; &nbsp;folder_co ntents.asp
&nbsp; &nbsp;1563<b r>
<img src='show_all_i mages_in_the_fo lder.asp' border='1'>&nbs p;
&nbsp;show_all_ images_in_the_f older.asp &nbsp; &nbsp;1345<b r>

Since you're using IIS 5.0, the names shouldn't be case sensitive and I've
already test that. The files do not have .gif, .png or .bmp extensions so
my only conclusion is that you're pulling the file size from a database and
not actually getting the information directly from the file at run time.
So, either the files that do not show are zero bytes or you've added them to
your site with Visual InterDev or something similar that uses FPSE
(FrontPage Server Extensions) and you're working in master mode and it shows
the files to be there in your editor but they have not been added to the
master web. It will show a blue pennant as the icon next to the file in the
editor.

I have experienced this before when trying to upload a lot of large files
via VI 6.0.

Since the files just do not display instead of generating an error, it
appears they are actually there but they're zero bytes.
Seeing the code might help to prove or disprove it's not something in the
code.

The other thing that would keep it from displaying you're not using which
would be an ID, if you were preloading and using getElementById. It would
load the first image with the ID but any subsequent images with the same ID
would not be loaded.
--
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 #7
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

--
William Tasso - http://WilliamTasso.com
Jul 19 '05 #8
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 #9
William and Ronald,
The bit of the source code you are refering to
<img src='folder_con tents.asp' border='1'>
Is absolutely correct and of cource no image shows up because
folder_contents .asp (as well as show_all_images _in_the_folder. asp) is not an
image but the ASP code.
For the moment it is sitting together with the images, but once the whole
thing is working, I either move it into another forlader or add an IF
statement which would skip over files with .asp extention

The rest image tags are formed like that

<img src='apl400-1.jpg' border='1'>

which seems perfectly OK to me, escept a missing closing "/" which should
not affect the image display. Yet the image fails.

So the problem seems to be with the images?
Jul 19 '05 #10

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

Similar topics

5
4848
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
2155
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...
3
1788
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
2359
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...
13
4055
by: Necqui Teja | last post by:
Are there any utils/tools to zip files at runtime in C#? Thanks Necqui
7
2561
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,...
11
6485
by: ABC | last post by:
How to rename files with support wildcard ?
2
2771
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...
10
1376
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...
0
7484
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...
0
7415
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7675
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7928
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7775
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...
0
5997
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...
0
4963
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1902
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
1
1030
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.