Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Newbie question

Jun 11, 2005 4:57AM PDT

Hi,

Not sure if this is the correct forum to ask this, but does anyone know why web page images can't be viewed from within a compressed folder?

Hope someone can help, or point me in the right direction.

Thanks

K.

Discussion is locked

- Collapse -
The question lacks detail.
Jun 11, 2005 5:51AM PDT

No mention of server, OS, and more. All I can answer is that my Apache server on Windows 2000 in the office has no issue with native NTFS compressed folders.

With so few details, I can't know if this helps you along.

Bob

- Collapse -
Sorry about that.
Jun 11, 2005 3:07PM PDT

Sorry for the lack of details. I'm only starting out with html/web publishing ('computers' really), and still getting used to how it all works.

Needless to say, I'm not running a web server at this stage. My OS is Windows XP home edition, and I use the built-in compression facility for zipping files. (Maybe this facility would correspond to 'native NTFS compressed folders', I'm not sure)

My question will probably seem very basic to you, but still, I'll have to rephrase it to get it across properly:

Websites/Servers aside, when I create an html document on my pc, insert an image into it using <IMG SRC = ''relative address.jpg''>, and send both files to a compressed folder(the same one), why is it that when I open the html document from within that folder, that the image doesn't show? I've since noticed that if I use <IMG SRC = ''absolute address.jpg''>, and merely compress the html file, then the image does show when I open it from within the zip.

It might also be relevant to mention that, if I compress a Word document that has an image in it, the image will show when the file is opened from within the zip.

That's the best I can explain it. Hope its a little clearer than my last effort.

K.

- Collapse -
You don't have a problem to solve.
Jun 11, 2005 10:00PM PDT

I see the issue now. You are wondering if all this stuff works. In short, it does.

As to ZIP files, those are ZIP files and not Compressed Folders aka NTFS file compression. Such will fail since the directory is not in NTFS's directory. But you get to learn something new today. Look up on google.com about NTFS COMPRESSION.

Bob

- Collapse -
I'll check out NTFS.
Jun 12, 2005 10:14AM PDT

Glad I was clear enough in my response, and yes, I do like to know how things work.

I understand the distinction you've made between Zip files and compressed folders(compressed NTFS files), and located a decent site on NTFS http://www.ntfs.com/. I'm not entirely sure what you mean by ''Such will fail since the directory is not in the NTFS's directory.'' i.e. 'What' will fail, and 'which' directory isn't in the NTFS's directory.

I'll proceed with reading up on NTFS.

- Collapse -
The images
Jun 11, 2005 5:53AM PDT

The images have to be placed in the compressed folder.

Unless you just send them the webpage. Sometimes when you send a html page, you have to change your

<img src="Pics/438locustst2004.jpg"width="333px" height="254px" border="0px" hspace="0px" vspace="0px">

You might have to add

http://www.yourwebsite.com/ to the code

see sample below

<center><img src="http://www.yourwebsite.com/Pics/438locustst2004.jpg"width="333px" height="254px" border="0px" hspace="0px" vspace="0px"</center>

Hope this helps

- Collapse -
Thanks PudgyOne.
Jun 11, 2005 3:32PM PDT

Thanks for your reply mate, and for taking the time to write it. I understand most of the code, but I've still got a bit go in other respects. Sad I'm sure my reply to Bob will highlight this.

Cheers

K.