Loading ...
Sorry, an error occurred while loading the content.
 

RE: [Easy400Group] I want to Display Picture on HTML page

Expand Messages
  • Usman Toor
    Hello Kevin This is the error in the Log file, Apache Config file and HTML code I could not resolve it to display the picture. please let me know where is
    Message 1 of 9 , May 1, 2011
      Hello Kevin

      This is the error in the Log file, Apache Config file and HTML code I could not resolve it to display the picture. please let me know where is mistake?

      Thanks

      (Othman)
      -----------------------------------------------
      [Sun May 01 10:23:05 2011] [error] [client 192.0.100.145] ZSRV_MSG0018: File /qsys.lib/cgidev2.lib/htmlsrc.file/welcome.mbrimagges does not exist, referer: http://192.0.100.10:8015    
      [Sun May 01 10:23:05 2011] [error] [client 192.0.100.145] ZSRV_MSG0016: URI in request GET /images/P1.gif HTTP/1.1 is not valid, referer: http://192.0.100.10:8015   
      -----------------------------------------------

      Here is the Apache config file
      -----------------------------------------------      
             ServerRoot /cgidev2
            
             DocumentRoot /www/images
       
            <Directory /www/images/>
                 Options None
                 order allow,deny 
                 allow from all 
            </Directory>
      -----------------------------------------------      
             Here is the HTML code

      -----------------------------------------------
      <HTML>                                                                             
        <HEAD>                                                                           
         <TITLE>Welcome To MY Page</TITLE>                                      
        </HEAD>                                                                          
        <BODY>                                                                           
           <IMG SRC ="/images/Picture1.gif">                                                   
                                                                                         
           <CENTER><H1>Welcome To My Page</h1><br>                           

                                                                                         
           </CENTER>                                                                     

        </BODY>                                                                          
      </HTML>           

       ------------------------

      I




      --- On Sat, 4/30/11, Kevin Turner <kevin.turner@...> wrote:

      From: Kevin Turner <kevin.turner@...>
      Subject: RE: [Easy400Group] I want to Display Picture on HTML page
      To: "Easy400Group@yahoogroups.com" <Easy400Group@yahoogroups.com>
      Date: Saturday, April 30, 2011, 2:08 AM

       

      Instead of

      <IMAGE SRC ="WWW/images/picture1.GIF">

       

      try

      <IMG SRC ="WWW/images/picture1.GIF"/>

       

      Also make sure that the path is correct relative to the web server document root (as specified in your Apache config file). If your document root is the “www” directory then the src property only need be “images/picture1.gif”

       

      Have a read about relative urls: http://webtips.dan.info/url.html

       

       

       

       


      From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of Usman Toor
      Sent: 30 April 2011 07:14
      To: Easy400Group@yahoogroups.com
      Subject: Re: [Easy400Group] I want to Display Picture on HTML page

       





      HI Elbert cook

      Many many thanks for the reply!!!

      here is the IFS path www/images/ and the file name is picture1.gif  (www/images/picture.gif) which I want to display on the HTML page. Still I could not. I think some thing is still missing as you mention accessible by the Web Server some folder that contain the pictures.

      Please can you explain to me how I can put the the said folder in the Web server so that it can read that folder and display the said picture?

      Please verify that the code to display the image file is correct?

      --------------------------------------------------------------
      Here is the HTML code
      --------------------------------------------------------------
      <HTML>                                                                                    
        <HEAD>                                                                                  
         <TITLE>Welcome To My Page</TITLE>                                             
        </HEAD>                                                                                 
        <BODY>                                                                                  
           <IMAGE SRC ="WWW/images/picture1.GIF">                                           
                                              
                                                                                               
           <CENTER><H1>Welcome To My Page</h1><br>                                  
          

        </BODY>                                                                                 
      </HTML>                          
      --------------------------------------------------------------
      HTML code Ends
      --------------------------------------------------------------

      Thanks
      (Othman)





      --- On Tue, 4/19/11, Elbert Cook <emcook@...> wrote:


      From: Elbert Cook <emcook@...>
      Subject: Re: [Easy400Group] I want to Display Picture on HTML page
      To: Easy400Group@yahoogroups.com
      Date: Tuesday, April 19, 2011, 9:40 AM

       

      You can use an <image src="%/filename/%"> tag in your HTML and use CGIDEV2 to update the path/filename to the picture. That is assuming the pictures are in a directory that is accessible by the Web Server.

       

      If the pictures are not in a path thats accessible by the Web Server, it gets more involved.

       


      From: Usman <othman_toor@...>
      To: Easy400Group@yahoogroups.com
      Sent: Tue, April 19, 2011 4:11:01 AM
      Subject: [Easy400Group] I want to Display Picture on HTML page

       

      Hi

      Can some one tell me how to display a picture on the HTML page using CGIDEV2. I am new in this field, I know the RPG, I crated a page which shows the list of parts. Now I want to display the pictures of the parts on the HTML page.

      I will appreciate your cooperation.

      Thanks
      (Othman)




      NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



      --------------------------------------------------------------------------------


      CoralTree Systems Limited
      25 Barnes Wallis Road
      Segensworth East, Fareham
      PO15 5TT

      Company Registration Number 5021022.
      Registered Office:
      12-14 Carlton Place
      Southampton, UK
      SO15 2EA
      VAT Registration Number 834 1020 74.
    • Usman Toor
      Hello Kevin This is the error in the Log file, ... [Sun May 01 10:23:05 2011] [error] [client 192.0.100.145] ZSRV_MSG0018: File
      Message 2 of 9 , May 1, 2011
        Hello Kevin

        This is the error in the Log file,

        ---------------------------------------------
        [Sun May 01 10:23:05 2011] [error] [client 192.0.100.145] ZSRV_MSG0018: File /qsys.lib/cgidev2.lib/htmlsrc.file/welcome.mbrimagges does not exist, referer: http://192.0.100.10:8015    
        [Sun May 01 10:23:05 2011] [error] [client 192.0.100.145] ZSRV_MSG0016: URI in request GET /images/P1.gif HTTP/1.1 is not valid, referer: http://192.0.100.10:8015   
        -----------------------------------------------

        Here is Apache Config file.


        Here is the Apache config file
        -----------------------------------------------      
               ServerRoot /cgidev2
              
               DocumentRoot /www/images
         
              <Directory /www/images/>
                   Options None
                   order allow,deny 
                   allow from all 
              </Directory>
        -----------------------------------------------      
               Here is the HTML code

        -----------------------------------------------
        <HTML>                                                                             
          <HEAD>                                                                           
           <TITLE>Welcome To MY Page</TITLE>                                      
          </HEAD>                                                                          
          <BODY>                                                                           
             <IMG SRC ="/images/Picture1.gif">                                                   
                                                                                           
             <CENTER><H1>Welcome To My Page</h1><br>                           

                                                                                           
             </CENTER>                                                                     

          </BODY>                                                                          
        </HTML>           

         ------------------------

        I could not resolve it to display the picture. please let me know where is mistake?

        Thanks

        (Othman)




        --- On Sat, 4/30/11, Kevin Turner <kevin.turner@...> wrote:

        From: Kevin Turner <kevin.turner@...>
        Subject: RE: [Easy400Group] I want to Display Picture on HTML page
        To: "Easy400Group@yahoogroups.com" <Easy400Group@yahoogroups.com>
        Date: Saturday, April 30, 2011, 2:08 AM

         

        Instead of

        <IMAGE SRC ="WWW/images/picture1.GIF">

         

        try

        <IMG SRC ="WWW/images/picture1.GIF"/>

         

        Also make sure that the path is correct relative to the web server document root (as specified in your Apache config file). If your document root is the “www” directory then the src property only need be “images/picture1.gif”

         

        Have a read about relative urls: http://webtips.dan.info/url.html

         

         

         

         


        From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of Usman Toor
        Sent: 30 April 2011 07:14
        To: Easy400Group@yahoogroups.com
        Subject: Re: [Easy400Group] I want to Display Picture on HTML page

         





        HI Elbert cook

        Many many thanks for the reply!!!

        here is the IFS path www/images/ and the file name is picture1.gif  (www/images/picture.gif) which I want to display on the HTML page. Still I could not. I think some thing is still missing as you mention accessible by the Web Server some folder that contain the pictures.

        Please can you explain to me how I can put the the said folder in the Web server so that it can read that folder and display the said picture?

        Please verify that the code to display the image file is correct?

        --------------------------------------------------------------
        Here is the HTML code
        --------------------------------------------------------------
        <HTML>                                                                                    
          <HEAD>                                                                                  
           <TITLE>Welcome To My Page</TITLE>                                             
          </HEAD>                                                                                 
          <BODY>                                                                                  
             <IMAGE SRC ="WWW/images/picture1.GIF">                                           
                                                
                                                                                                 
             <CENTER><H1>Welcome To My Page</h1><br>                                  
            

          </BODY>                                                                                 
        </HTML>                          
        --------------------------------------------------------------
        HTML code Ends
        --------------------------------------------------------------

        Thanks
        (Othman)





        --- On Tue, 4/19/11, Elbert Cook <emcook@...> wrote:


        From: Elbert Cook <emcook@...>
        Subject: Re: [Easy400Group] I want to Display Picture on HTML page
        To: Easy400Group@yahoogroups.com
        Date: Tuesday, April 19, 2011, 9:40 AM

         

        You can use an <image src="%/filename/%"> tag in your HTML and use CGIDEV2 to update the path/filename to the picture. That is assuming the pictures are in a directory that is accessible by the Web Server.

         

        If the pictures are not in a path thats accessible by the Web Server, it gets more involved.

         


        From: Usman <othman_toor@...>
        To: Easy400Group@yahoogroups.com
        Sent: Tue, April 19, 2011 4:11:01 AM
        Subject: [Easy400Group] I want to Display Picture on HTML page

         

        Hi

        Can some one tell me how to display a picture on the HTML page using CGIDEV2. I am new in this field, I know the RPG, I crated a page which shows the list of parts. Now I want to display the pictures of the parts on the HTML page.

        I will appreciate your cooperation.

        Thanks
        (Othman)




        NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



        --------------------------------------------------------------------------------


        CoralTree Systems Limited
        25 Barnes Wallis Road
        Segensworth East, Fareham
        PO15 5TT

        Company Registration Number 5021022.
        Registered Office:
        12-14 Carlton Place
        Southampton, UK
        SO15 2EA
        VAT Registration Number 834 1020 74.
      • Kevin Turner
        Othman Really this is an HTML question (and perhaps Apache config) rather than anything to do with CGIDEV2. Using CGIDEV2 and RPG does not preclude you from
        Message 3 of 9 , May 1, 2011

          Othman

           

          Really this is an HTML question (and perhaps Apache config) rather than anything to do with CGIDEV2.  Using CGIDEV2 and RPG does not preclude you from having to have a basic understanding of these two things first, so that you can then put those skills to use using CGIDEV2.  Before jumping ahead too far it might be worthwhile you have a dig around on Google for some good online tutorials on the subject.

           

          Your Apache set up looks a bit odd to me. The DocumentRoot directive tells Apache the starting point it has for looking for all your resources (images, static html pages, javascript etc etc). These things would normally live in the document root and sub-directories thereof.

          Your DocumentRoot says “/www/images/”.  That would mean that all your web resources would have to be in the “images” directory.  That makes no sense at all. It would make more sense if the DocumentRoot was just “/www”.   But then what if you want more than one web site (application) in your “www” directory?   Perhaps (to keep such things separate) your document root would be “/www/xxxx” where xxxx is something unique to your application.

           

          Within “/www/xxxx” you would have your “images” directory, such that the path is “/www/xxxx/images”.  You might also have a “/www/xxxx/scripts” and a “/www/xxxx/styles” folder and so on.  Your static web pages might just live in “/www/xxxx”.   Your templates that your CGI programs use would be in a completely different place that Apache cannot access at all.

           

          So, if your DocumentRoot is “/www/xxxx” and your images are in “/www/xxxx/images” the html to refer to the image relative to the document root would be:

           

           <IMG SRC ="images/Picture1.gif"/>

           

          Rgds

          Kevin

           


          From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of Usman Toor
          Sent: 01 May 2011 10:38
          To: Easy400Group@yahoogroups.com
          Subject: RE: [Easy400Group] I want to Display Picture on HTML page

           




          Hello Kevin

          This is the error in the Log file, Apache Config file and HTML code I could not resolve it to display the picture. please let me know where is mistake?

          Thanks

          (Othman)
          -----------------------------------------------
          [Sun May 01 10:23:05 2011] [error] [client 192.0.100.145] ZSRV_MSG0018: File /qsys.lib/cgidev2.lib/htmlsrc.file/welcome.mbrimagges does not exist, referer: http://192.0.100.10:8015    
          [Sun May 01 10:23:05 2011] [error] [client 192.0.100.145] ZSRV_MSG0016: URI in request GET /images/P1.gif HTTP/1.1 is not valid, referer: http://192.0.100.10:8015   
          -----------------------------------------------

          Here is the Apache config file
          -----------------------------------------------      
                 ServerRoot /cgidev2
                
                 DocumentRoot /www/images
           
                <Directory /www/images/>
                     Options None
                     order allow,deny 
                     allow from all 
                </Directory>
          -----------------------------------------------      
                 Here is the HTML code

          -----------------------------------------------
          <HTML>                                                                             
            <HEAD>                                                                           
             <TITLE>Welcome To MY Page</TITLE>                                      
            </HEAD>                                                                          
            <BODY>                                                                           
               <IMG SRC ="/images/Picture1.gif">                                                   
                                                                                             
               <CENTER><H1>Welcome To My Page</h1><br>                           

                                                                                             
               </CENTER>                                                                     

            </BODY>                                                                          
          </HTML>           

           ------------------------

          I




          --- On Sat, 4/30/11, Kevin Turner <kevin.turner@...> wrote:


          From: Kevin Turner <kevin.turner@...>
          Subject: RE: [Easy400Group] I want to Display Picture on HTML page
          To: "Easy400Group@yahoogroups.com" <Easy400Group@yahoogroups.com>
          Date: Saturday, April 30, 2011, 2:08 AM

           

          Instead of

          <IMAGE SRC ="WWW/images/picture1.GIF">

           

          try

          <IMG SRC ="WWW/images/picture1.GIF"/>

           

          Also make sure that the path is correct relative to the web server document root (as specified in your Apache config file). If your document root is the “www” directory then the src property only need be “images/picture1.gif”

           

          Have a read about relative urls: http://webtips.dan.info/url.html

           

           

           

           


          From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of Usman Toor
          Sent: 30 April 2011 07:14
          To: Easy400Group@yahoogroups.com
          Subject: Re: [Easy400Group] I want to Display Picture on HTML page

           




          HI Elbert cook

          Many many thanks for the reply!!!

          here is the IFS path www/images/ and the file name is picture1.gif  (www/images/picture.gif) which I want to display on the HTML page. Still I could not. I think some thing is still missing as you mention accessible by the Web Server some folder that contain the pictures.

          Please can you explain to me how I can put the the said folder in the Web server so that it can read that folder and display the said picture?

          Please verify that the code to display the image file is correct?

          --------------------------------------------------------------
          Here is the HTML code
          --------------------------------------------------------------
          <HTML>                                                                                    
            <HEAD>                                                                                  
             <TITLE>Welcome To My Page</TITLE>                                             
            </HEAD>                                                                                 
            <BODY>                                                                                  
               <IMAGE SRC ="WWW/images/picture1.GIF">                                           
                                                  
                                                                                                   
               <CENTER><H1>Welcome To My Page</h1><br>                                  
              

            </BODY>                                                                                 
          </HTML>                          
          --------------------------------------------------------------
          HTML code Ends
          --------------------------------------------------------------

          Thanks
          (Othman)





          --- On Tue, 4/19/11, Elbert Cook <emcook@...> wrote:


          From: Elbert Cook <emcook@...>
          Subject: Re: [Easy400Group] I want to Display Picture on HTML page
          To: Easy400Group@yahoogroups.com
          Date: Tuesday, April 19, 2011, 9:40 AM

           

          You can use an <image src="%/filename/%"> tag in your HTML and use CGIDEV2 to update the path/filename to the picture. That is assuming the pictures are in a directory that is accessible by the Web Server.

           

          If the pictures are not in a path thats accessible by the Web Server, it gets more involved.

           


          From: Usman <othman_toor@...>
          To: Easy400Group@yahoogroups.com
          Sent: Tue, April 19, 2011 4:11:01 AM
          Subject: [Easy400Group] I want to Display Picture on HTML page

           

          Hi

          Can some one tell me how to display a picture on the HTML page using CGIDEV2. I am new in this field, I know the RPG, I crated a page which shows the list of parts. Now I want to display the pictures of the parts on the HTML page.

          I will appreciate your cooperation.

          Thanks
          (Othman)

           

           


          NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



          --------------------------------------------------------------------------------


          CoralTree Systems Limited
          25 Barnes Wallis Road
          Segensworth East, Fareham
          PO15 5TT

          Company Registration Number 5021022.
          Registered Office:
          12-14 Carlton Place
          Southampton , UK
          SO15 2EA
          VAT Registration Number 834 1020 74.




          NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



          --------------------------------------------------------------------------------


          CoralTree Systems Limited
          25 Barnes Wallis Road
          Segensworth East, Fareham
          PO15 5TT

          Company Registration Number 5021022.
          Registered Office:
          12-14 Carlton Place
          Southampton, UK
          SO15 2EA
          VAT Registration Number 834 1020 74.
        • Douglas Bridwell
          This post reminded me of something I have wanted to ask the group... Does anyone have experience displaying a picture directly from a BLOB field in a database
          Message 4 of 9 , May 1, 2011
            This post reminded me of something I have wanted to ask the group...
            Does anyone have experience displaying a picture directly from a BLOB field in a database file?
            For instance, you could store an employee's picture directly in the employee table in a BLOB field.
            Your CGIDEV2 program would need to be able to upload a picture to get it into the field.
            And then whenever you wanted to display the picture you would need to extract it from the BLOB field and present it via html.
            I was wondering how that is done.  

            Thanks,
            Doug Bridwell


            From: Kevin Turner <kevin.turner@...>
            To: "Easy400Group@yahoogroups.com" <Easy400Group@yahoogroups.com>
            Sent: Sunday, May 1, 2011 5:18 AM
            Subject: {Disarmed} RE: [Easy400Group] I want to Display Picture on HTML page

             
            Othman
             
            Really this is an HTML question (and perhaps Apache config) rather than anything to do with CGIDEV2.  Using CGIDEV2 and RPG does not preclude you from having to have a basic understanding of these two things first, so that you can then put those skills to use using CGIDEV2.  Before jumping ahead too far it might be worthwhile you have a dig around on Google for some good online tutorials on the subject.
             
            Your Apache set up looks a bit odd to me. The DocumentRoot directive tells Apache the starting point it has for looking for all your resources (images, static html pages, javascript etc etc). These things would normally live in the document root and sub-directories thereof.

            Your DocumentRoot says “/www/images/”.  That would mean that all your web resources would have to be in the “images” directory.  That makes no sense at all. It would make more sense if the DocumentRoot was just “/www”.   But then what if you want more than one web site (application) in your “www” directory?   Perhaps (to keep such things separate) your document root would be “/www/xxxx” where xxxx is something unique to your application.
             
            Within “/www/xxxx” you would have your “images” directory, such that the path is “/www/xxxx/images”.  You might also have a “/www/xxxx/scripts” and a “/www/xxxx/styles” folder and so on.  Your static web pages might just live in “/www/xxxx”.   Your templates that your CGI programs use would be in a completely different place that Apache cannot access at all.
             
            So, if your DocumentRoot is “/www/xxxx” and your images are in “/www/xxxx/images” the html to refer to the image relative to the document root would be:
             
             <IMG SRC ="images/Picture1.gif"/>
             
            Rgds
            Kevin
             

            From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of Usman Toor
            Sent: 01 May 2011 10:38
            To: Easy400Group@yahoogroups.com
            Subject: RE: [Easy400Group] I want to Display Picture on HTML page
             



            Hello Kevin

            This is the error in the Log file, Apache Config file and HTML code I could not resolve it to display the picture. please let me know where is mistake?

            Thanks

            (Othman)
            -----------------------------------------------
            [Sun May 01 10:23:05 2011] [error] [client 192.0.100.145] ZSRV_MSG0018: File /qsys.lib/cgidev2.lib/htmlsrc.file/welcome.mbrimagges does not exist, referer: http://192.0.100.10:8015    
            [Sun May 01 10:23:05 2011] [error] [client 192.0.100.145] ZSRV_MSG0016: URI in request GET /images/P1.gif HTTP/1.1 is not valid, referer: http://192.0.100.10:8015   
            -----------------------------------------------

            Here is the Apache config file
            -----------------------------------------------      
                   ServerRoot /cgidev2
                  
                   DocumentRoot /www/images
             
                  <Directory /www/images/>
                       Options None
                       order allow,deny 
                       allow from all 
                  </Directory>
            -----------------------------------------------      
                   Here is the HTML code

            -----------------------------------------------
            <HTML>                                                                             
              <HEAD>                                                                           
               <TITLE>Welcome To MY Page</TITLE>                                      
              </HEAD>                                                                          
              <BODY>                                                                           
                 <IMG SRC ="/images/Picture1.gif">                                                   
                                                                                               
                 <CENTER><H1>Welcome To My Page</h1><br>                           

                                                                                               
                 </CENTER>                                                                     

              </BODY>                                                                          
            </HTML>           

             ------------------------

            I




            --- On Sat, 4/30/11, Kevin Turner <kevin.turner@...> wrote:

            From: Kevin Turner <kevin.turner@...>
            Subject: RE: [Easy400Group] I want to Display Picture on HTML page
            To: "Easy400Group@yahoogroups.com" <Easy400Group@yahoogroups.com>
            Date: Saturday, April 30, 2011, 2:08 AM
             
            Instead of
            <IMAGE SRC ="WWW/images/picture1.GIF">
             
            try
            <IMG SRC ="WWW/images/picture1.GIF"/>
             
            Also make sure that the path is correct relative to the web server document root (as specified in your Apache config file). If your document root is the “www” directory then the src property only need be “images/picture1.gif”
             
            Have a read about relative urls: http://webtips.dan.info/url.html
             
             
             
             

            From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of Usman Toor
            Sent: 30 April 2011 07:14
            To: Easy400Group@yahoogroups.com
            Subject: Re: [Easy400Group] I want to Display Picture on HTML page
             



            HI Elbert cook

            Many many thanks for the reply!!!

            here is the IFS path www/images/ and the file name is picture1.gif  (www/images/picture.gif) which I want to display on the HTML page. Still I could not. I think some thing is still missing as you mention accessible by the Web Server some folder that contain the pictures.

            Please can you explain to me how I can put the the said folder in the Web server so that it can read that folder and display the said picture?

            Please verify that the code to display the image file is correct?

            --------------------------------------------------------------
            Here is the HTML code
            --------------------------------------------------------------
            <HTML>                                                                                    
              <HEAD>                                                                                  
               <TITLE>Welcome To My Page</TITLE>                                             
              </HEAD>                                                                                 
              <BODY>                                                                                  
                 <IMAGE SRC ="WWW/images/picture1.GIF">                                           
                                                    
                                                                                                     
                 <CENTER><H1>Welcome To My Page</h1><br>                                  
                

              </BODY>                                                                                 
            </HTML>                          
            --------------------------------------------------------------
            HTML code Ends
            --------------------------------------------------------------

            Thanks
            (Othman)





            --- On Tue, 4/19/11, Elbert Cook <emcook@...> wrote:

            From: Elbert Cook <emcook@...>
            Subject: Re: [Easy400Group] I want to Display Picture on HTML page
            To: Easy400Group@yahoogroups.com
            Date: Tuesday, April 19, 2011, 9:40 AM
             
            You can use an <image src="%/filename/%"> tag in your HTML and use CGIDEV2 to update the path/filename to the picture. That is assuming the pictures are in a directory that is accessible by the Web Server.
             
            If the pictures are not in a path thats accessible by the Web Server, it gets more involved.
             

            From: Usman <othman_toor@...>
            To: Easy400Group@yahoogroups.com
            Sent: Tue, April 19, 2011 4:11:01 AM
            Subject: [Easy400Group] I want to Display Picture on HTML page

             
            Hi

            Can some one tell me how to display a picture on the HTML page using CGIDEV2. I am new in this field, I know the RPG, I crated a page which shows the list of parts. Now I want to display the pictures of the parts on the HTML page.

            I will appreciate your cooperation.

            Thanks
            (Othman)
             
             

            NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



            --------------------------------------------------------------------------------


            CoralTree Systems Limited
            25 Barnes Wallis Road
            Segensworth East, Fareham
            PO15 5TT

            Company Registration Number 5021022.
            Registered Office:
            12-14 Carlton Place
            Southampton , UK
            SO15 2EA
            VAT Registration Number 834 1020 74.



            NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



            --------------------------------------------------------------------------------


            CoralTree Systems Limited
            25 Barnes Wallis Road
            Segensworth East, Fareham
            PO15 5TT

            Company Registration Number 5021022.
            Registered Office:
            12-14 Carlton Place
            Southampton, UK
            SO15 2EA
            VAT Registration Number 834 1020 74.


          • Kevin Turner
            One way or another your CGI program would need to be able to read the file that contains the image. If it is on the IFS you can quite easily read it into your
            Message 5 of 9 , May 1, 2011

              One way or another your CGI program would need to be able to read the file that contains the image.  If it is on the IFS you can quite easily read it into your RPG program.  You can then use Scott Klements BASE64 encoding service program to encode the image file and store it in the BLOB.

               

              To display an image using just that base64 encoded string (as opposed to the normal way by referencing it to a location on the server) the HTML would look something like this:

               

              <img border="0" title="Base 64 encoded image example" alt=" Base 64 encoded image example" src="data:image/png;base64,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">

               

               

              If you put that in your HTML you should see a cog image.

               


              From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of Douglas Bridwell
              Sent: 01 May 2011 16:42
              To: Easy400Group@yahoogroups.com
              Subject: RE: [Easy400Group] I want to Display Picture on HTML page

               




              This post reminded me of something I have wanted to ask the group...

              Does anyone have experience displaying a picture directly from a BLOB field in a database file?

              For instance, you could store an employee's picture directly in the employee table in a BLOB field.

              Your CGIDEV2 program would need to be able to upload a picture to get it into the field.

              And then whenever you wanted to display the picture you would need to extract it from the BLOB field and present it via html.

              I was wondering how that is done.  

               

              Thanks,

              Doug Bridwell

               


              From: Kevin Turner <kevin.turner@...>
              To: "Easy400Group@yahoogroups.com" <Easy400Group@yahoogroups.com>
              Sent: Sunday, May 1, 2011 5:18 AM
              Subject: {Disarmed} RE: [Easy400Group] I want to Display Picture on HTML page

               

              Othman

               

              Really this is an HTML question (and perhaps Apache config) rather than anything to do with CGIDEV2.  Using CGIDEV2 and RPG does not preclude you from having to have a basic understanding of these two things first, so that you can then put those skills to use using CGIDEV2.  Before jumping ahead too far it might be worthwhile you have a dig around on Google for some good online tutorials on the subject.

               

              Your Apache set up looks a bit odd to me. The DocumentRoot directive tells Apache the starting point it has for looking for all your resources (images, static html pages, javascript etc etc). These things would normally live in the document root and sub-directories thereof.

              Your DocumentRoot says “/www/images/”.  That would mean that all your web resources would have to be in the “images” directory.  That makes no sense at all. It would make more sense if the DocumentRoot was just “/www”.   But then what if you want more than one web site (application) in your “www” directory?   Perhaps (to keep such things separate) your document root would be “/www/xxxx” where xxxx is something unique to your application.

               

              Within “/www/xxxx” you would have your “images” directory, such that the path is “/www/xxxx/images”.  You might also have a “/www/xxxx/scripts” and a “/www/xxxx/styles” folder and so on.  Your static web pages might just live in “/www/xxxx”.   Your templates that your CGI programs use would be in a completely different place that Apache cannot access at all.

               

              So, if your DocumentRoot is “/www/xxxx” and your images are in “/www/xxxx/images” the html to refer to the image relative to the document root would be:

               

               <IMG SRC ="images/Picture1.gif"/>

               

              Rgds

              Kevin

               


              From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of Usman Toor
              Sent: 01 May 2011 10:38
              To: Easy400Group@yahoogroups.com
              Subject: RE: [Easy400Group] I want to Display Picture on HTML page

               



              Hello Kevin

              This is the error in the Log file, Apache Config file and HTML code I could not resolve it to display the picture. please let me know where is mistake?

              Thanks

              (Othman)
              -----------------------------------------------
              [Sun May 01 10:23:05 2011] [error] [client 192.0.100.145] ZSRV_MSG0018: File /qsys.lib/cgidev2.lib/htmlsrc.file/welcome.mbrimagges does not exist, referer: http://192.0.100.10:8015    
              [Sun May 01 10:23:05 2011] [error] [client 192.0.100.145] ZSRV_MSG0016: URI in request GET /images/P1.gif HTTP/1.1 is not valid, referer: http://192.0.100.10:8015   
              -----------------------------------------------

              Here is the Apache config file
              -----------------------------------------------      
                     ServerRoot /cgidev2
                    
                     DocumentRoot /www/images
               
                    <Directory /www/images/>
                         Options None
                         order allow,deny 
                         allow from all 
                    </Directory>
              -----------------------------------------------      
                     Here is the HTML code

              -----------------------------------------------
              <HTML>                                                                             
                <HEAD>                                                                           
                 <TITLE>Welcome To MY Page</TITLE>                                      
                </HEAD>                                                                          
                <BODY>                                                                           
                   <IMG SRC ="/images/Picture1.gif">                                                   
                                                                                                 
                   <CENTER><H1>Welcome To My Page</h1><br>                           

                                                                                                 
                   </CENTER>                                                                     

                </BODY>                                                                          
              </HTML>           

               ------------------------

              I




              --- On Sat, 4/30/11, Kevin Turner <kevin.turner@...> wrote:


              From: Kevin Turner <kevin.turner@...>
              Subject: RE: [Easy400Group] I want to Display Picture on HTML page
              To: "Easy400Group@yahoogroups.com" <Easy400Group@yahoogroups.com>
              Date: Saturday, April 30, 2011, 2:08 AM

               

              Instead of

              <IMAGE SRC ="WWW/images/picture1.GIF">

               

              try

              <IMG SRC ="WWW/images/picture1.GIF"/>

               

              Also make sure that the path is correct relative to the web server document root (as specified in your Apache config file). If your document root is the “www” directory then the src property only need be “images/picture1.gif”

               

              Have a read about relative urls: http://webtips.dan.info/url.html

               

               

               

               


              From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of Usman Toor
              Sent: 30 April 2011 07:14
              To: Easy400Group@yahoogroups.com
              Subject: Re: [Easy400Group] I want to Display Picture on HTML page

               

               


              HI Elbert cook

              Many many thanks for the reply!!!

              here is the IFS path www/images/ and the file name is picture1.gif  (www/images/picture.gif) which I want to display on the HTML page. Still I could not. I think some thing is still missing as you mention accessible by the Web Server some folder that contain the pictures.

              Please can you explain to me how I can put the the said folder in the Web server so that it can read that folder and display the said picture?

              Please verify that the code to display the image file is correct?

              --------------------------------------------------------------
              Here is the HTML code
              --------------------------------------------------------------
              <HTML>                                                                                    
                <HEAD>                                                                                  
                 <TITLE>Welcome To My Page</TITLE>                                             
                </HEAD>                                                                                 
                <BODY>                                                                                  
                   <IMAGE SRC ="WWW/images/picture1.GIF">                                           
                                                      
                                                                                                       
                   <CENTER><H1>Welcome To My Page</h1><br>                                  
                  

                </BODY>                                                                                 
              </HTML>                          
              --------------------------------------------------------------
              HTML code Ends
              --------------------------------------------------------------

              Thanks
              (Othman)





              --- On Tue, 4/19/11, Elbert Cook <emcook@...> wrote:


              From: Elbert Cook <emcook@...>
              Subject: Re: [Easy400Group] I want to Display Picture on HTML page
              To: Easy400Group@yahoogroups.com
              Date: Tuesday, April 19, 2011, 9:40 AM

               

              You can use an <image src="%/filename/%"> tag in your HTML and use CGIDEV2 to update the path/filename to the picture. That is assuming the pictures are in a directory that is accessible by the Web Server.

               

              If the pictures are not in a path thats accessible by the Web Server, it gets more involved.

               


              From: Usman <othman_toor@...>
              To: Easy400Group@yahoogroups.com
              Sent: Tue, April 19, 2011 4:11:01 AM
              Subject: [Easy400Group] I want to Display Picture on HTML page

               

              Hi

              Can some one tell me how to display a picture on the HTML page using CGIDEV2. I am new in this field, I know the RPG, I crated a page which shows the list of parts. Now I want to display the pictures of the parts on the HTML page.

              I will appreciate your cooperation.

              Thanks
              (Othman)

               

               


              NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



              --------------------------------------------------------------------------------


              CoralTree Systems Limited
              25 Barnes Wallis Road
              Segensworth East, Fareham
              PO15 5TT

              Company Registration Number 5021022.
              Registered Office:
              12-14 Carlton Place
              Southampton , UK
              SO15 2EA
              VAT Registration Number 834 1020 74.

               

               


              NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



              --------------------------------------------------------------------------------


              CoralTree Systems Limited
              25 Barnes Wallis Road
              Segensworth East, Fareham
              PO15 5TT

              Company Registration Number 5021022.
              Registered Office:
              12-14 Carlton Place
              Southampton , UK
              SO15 2EA
              VAT Registration Number 834 1020 74.

               




              NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



              --------------------------------------------------------------------------------


              CoralTree Systems Limited
              25 Barnes Wallis Road
              Segensworth East, Fareham
              PO15 5TT

              Company Registration Number 5021022.
              Registered Office:
              12-14 Carlton Place
              Southampton, UK
              SO15 2EA
              VAT Registration Number 834 1020 74.
            Your message has been successfully submitted and would be delivered to recipients shortly.