Repost: Repost: Repost: Images in existing documents

  •  12-10-2005, 12:51 AM

    Repost: Repost: Repost: Images in existing documents

    Seems weird, but I just can't seem to get any focus on this problem. This the third posting. Adam looked at it once but then lost interest maybe?

    Problem:
    I have installed CuteEdit as described in the documentation and can open existing htmls fine. The only problem is that any images do not display. Seems to me it's probably a pathing issue but I'm not sure what to do. The developer guide at http://cutesoft.net/developer+guide/index.html really leave a lot to be desired unfortunately.
    TIA
    Scott

    Adams Response:
    Scott,
    Sorry for miss your post.
    Can you tell me your file structure and post the HTML code of your existing htmls?

    My Response:

       
    Hi Adam, thanks for the reply. This is an example of what I'm having trouble with:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>New Page 1</title>
    </head>
    <body>
    <p>
    &nbsp;</p>
    <p>
    <img border="0" src="fees%20payment%20notice_files/image002.gif" width="1123" height="795"></p>
    </body>
    </html>

    App is running in virtual dir CasulaDocumentPortal which exists at D:\Data\Projects\Casula Vet Hospital\Document Portal\
    html file above exists at D:\Data\Projects\Casula Vet Hospital\Document Portal\documents\A Chapter 1 general notes
    full path to image referenced is D:\Data\Projects\Casula Vet Hospital\Document Portal\documents\A Chapter 1 general notes\fees payment notice_files\image002.gif
    I have confirmed that I can navigate to  http://localhost/CasulaDocumentPortal/documents/A%20Chapter%201%20general%20notes/fees%20payment%20notice_files/image002.gif
    Unfortunately CuteEditor just displays a blank page.

    Thanks for your time,
    Scott

    Adams Response:
    Scott,
    This is not an editor issue. 
    You are using a relative path, the images are stored at a location relative to the document directory. 
    If the document location is D:\Data\Projects\Casula Vet Hospital\Document Portal\some.html and and the image (image002.gif) location is "fees%20payment%20notice_files",  the image should be stored at D:\Data\Projects\Casula Vet Hospital\Document Portal\fees%20payment%20notice_files\image002.gif.
    If the document location is D:\Data\Projects\Casula Vet Hospital\Document Portal\documents\A Chapter 1 general notes\some.html and and the image (image002.gif) location is "fees%20payment%20notice_files",  the image should be stored at D:\Data\Projects\Casula Vet Hospital\Document Portal\documents\A Chapter 1 general notes\fees%20payment%20notice_files\image002.gif.

    My Response:
    But Adam, as I explained before, that IS where the image is stored!!!
View Complete Thread