Graphic problem using html v4.6

Hello Group,

I have several graphic files attached to a RichText field in a document in a
database located in a subdirectory called SBE under the Data directory.
When I insert one of the graphics into a notes document using HTML code, and
later try to view the document in my browser, the graphic doesn't load;  I
just get a placeholder box with an X in it.  When I import the graphic into
the document, the browser loads and displays the graphic just fine.  The
site reuses many of the graphics, so it would be a real benefit to be able
to insert them rather than import them.  The database properties is set to
"Use JavaScript when generating pages" for web access.   The document
properties for the form has the "Treat contents as HTML" unchecked.  The
HTML code that I'm using is  <IMG
SRC="SBE/MyDatabase.nsf/External+Files+View/Graphics/$File/MyPicture.gif">
 
Any ideas how to fix this?  I suspect the problem is in my server document,
but I'm not sure what to change.



Regards,
DevonCLS
DevonCLSAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

melbor1Commented:
try adding "?OpenElement" to the end of the html link

Melissa
0
ghassan99Commented:
Can u check in the web log what message is generated when a request for the image is required?
Try to eleminate spaces from the filename if existed, replace them with '+'

-Gus
0
DevonCLSAuthor Commented:
Hello Melissa & Gus

Unfortunately both of those suggestions did not work.  I have an administrator looking into the logs now.  Any other suggestions?

Regards,
DevonCLS
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

HemanthaKumarCommented:
Hi

Try to add the server path with ur refering SRC,

eg:

serverName/databasename/viewname/$file/file

Hemanth
0
melbor1Commented:
From Notes help:

The following commands open files and objects within a document.
OpenElement
Use the ?OpenElement command to access file attachments, image files, and OLE objects.
Using OpenElement with file attachments
Syntax
http://Host/Database/View/Document/$File/Filename?OpenElement
Example
http:/ /www.mercury.com/lproducts.nsf/By+Part+Number/SN156/$File/spec.txt?OpenElement
Note that if more than one attached file has the same name, the URL includes both the "internal" file name as well as the external name. Since the internal file name is not easily determined, make sure all attached files have unique names.
Because some browsers require that the URL end with the attached file name, Domino treats all file attachment OpenElement commands as implicit commands.
http://Host/Database/View/Document/$File/InternalFileName/Filename?OpenElement
Using OpenElement with image files
Syntax
http://Host/Database/View/Document/FieldName/FieldOffset?OpenElement
http://Host/Database/View/Document/FieldName/FieldOffset?OpenElement&FieldElemFormat=ImageFormat
Optional argument for OpenElement
FieldElemFormat = ImageFormat
Where:
ImageFormat  is either GIF or JPEG.  If you do not specify FieldElemFormat, Domino assumes the image file format is GIF.
0
ghassan99Commented:
Mel,
I have this working w/o req. a '?openelement'

-Gus
0
DevonCLSAuthor Commented:
Adjusted points to 400
0
DevonCLSAuthor Commented:
None of the solutions provided have helped me.  I have increased the points to 400

Regards,
DevonCLS
0
ghassan99Commented:
OK, can you do something for me?  In the 'External Files View', can u check the 'Graphics' document's properties by right clicking it.  When u go in there, check if there is a field in there called $file, and check whats its value and try to use this value.  Tell me of the outcome.

-Gus
0
Scott2000Commented:
Hi,

In the External+Files+View, check the first column in sorted and that the value in the first column is "Graphics".

If it is, check the "Graphics" document's $File field to make sure that the image is called MyPicture.gif.

If this does not help, can you try opening the document using the full view and document universal id's to see if that works.

If it does, it'll be something to do with the name of the view or the document.

You could also try setting the "Treat document contents as HTML" flag.

Regards,

Scott.
0
DevonCLSAuthor Commented:
Hi Scott,
Please comment first, I'm having my team work on your proposed answer now.  If it works I will make sure that you get the points.

Hey Gus,
I'm having them check on that now.  I'm not sure when they will be done.  I will post a comment here as soon as I know something.

Regards,
DevonCLS
0
Scott2000Commented:
Try one more thing then:

Try to change the name fo the External Files View from External+Files+View to ExternalFilesView .... all one word.

I've seen times where IE4 want "%20" for a spacer character instead of "+" and Netscape the opposite.

Cheers,

Scott.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ghassan99Commented:
What I think u will discover, that there is actually more than one field called $File in the document!  And none of them has the name 'MyPicture.gif' inside.  Try creating another document and pasting another GIF file, use drag & drop from, say, from windows explorer into the RTF.

-Gus
0
DevonCLSAuthor Commented:
Thanks Scott,
  I would tell you how we solved it but I had no idea what they were telling me.  They said that your answers helped them the most.  Great job!  

  I also just want to thank everyone who helped in answering this very tough question.  You are all experts in your field.

Best Regards,
Devon M. County
Director of Marketing
Big D Consulting, LLC
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.