LoadPicture - problem!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Iulian Ilea

    LoadPicture - problem!

    Hello!

    I've created a PDF report and trying to load a picture using
    LoadPicture fucntion. It works fine on my computer but it gives an
    error on some other computers - permision denied, or something similar.

    Code:
    ----------
    Dim myImg, fs
    Set fs= Server.CreateOb ject("Scripting .FileSystemObje ct")
    if not fs.fileExists(i mg) then exit sub
    set myImg = loadpicture(img )
    iWidth = round(myImg.wid th / 26.4583)
    iHeight = round(myImg.hei ght / 26.4583)
    ----------

    File is found but when trying to load I get something like permision
    denied.

    img =
    Server.MapPath( "../../../")&Session("IG" ).getValue("Upl oadDir")&arr(30 ,i),"/","\")

    Application is not stored in a directory different by the IIS's Home
    directory. I have a virtual directory for accessing the application, I
    don't know if this influences in some way.

  • Jon Paal

    #2
    Re: LoadPicture - problem!

    some web hosts won't allow this type of folder reference :

    "../../../"


    "Iulian Ilea" <iulian.ilea@gm ail.comwrote in message news:1166714335 .574070.235270@ f1g2000cwa.goog legroups.com...
    Hello!
    >
    I've created a PDF report and trying to load a picture using
    LoadPicture fucntion. It works fine on my computer but it gives an
    error on some other computers - permision denied, or something similar.
    >
    Code:
    ----------
    Dim myImg, fs
    Set fs= Server.CreateOb ject("Scripting .FileSystemObje ct")
    if not fs.fileExists(i mg) then exit sub
    set myImg = loadpicture(img )
    iWidth = round(myImg.wid th / 26.4583)
    iHeight = round(myImg.hei ght / 26.4583)
    ----------
    >
    File is found but when trying to load I get something like permision
    denied.
    >
    img =
    Server.MapPath( "../../../")&Session("IG" ).getValue("Upl oadDir")&arr(30 ,i),"/","\")
    >
    Application is not stored in a directory different by the IIS's Home
    directory. I have a virtual directory for accessing the application, I
    don't know if this influences in some way.
    >

    Comment

    • Anthony Jones

      #3
      Re: LoadPicture - problem!


      "Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message
      news:12olfglitf 94r1c@corp.supe rnews.com...
      some web hosts won't allow this type of folder reference :
      >
      "../../../"
      >
      >
      It's called a parent path, by default IIS6 disables the use of parent paths.
      Rather than enable this 'feature' use an absolute path instead.


      Comment

      • Jon Paal

        #4
        Re: LoadPicture - problem!

        please respond to the person who asked the question, not to the person who already provided the answer


        "Anthony Jones" <Ant@yadayadaya da.comwrote in message news:u7%23B5igJ HHA.1240@TK2MSF TNGP03.phx.gbl. ..
        >
        "Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message
        news:12olfglitf 94r1c@corp.supe rnews.com...
        >some web hosts won't allow this type of folder reference :
        >>
        >"../../../"
        >>
        >>
        >
        It's called a parent path, by default IIS6 disables the use of parent paths.
        Rather than enable this 'feature' use an absolute path instead.
        >
        >

        Comment

        • Anthony Jones

          #5
          Re: LoadPicture - problem!


          "Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message
          news:12pdmr0i7u btgec@corp.supe rnews.com...
          please respond to the person who asked the question, not to the person who
          already provided the answer
          >
          Please don't top post. Please don't do this and please don't do that.
          Sheesh!



          Comment

          • Jon Paal

            #6
            Re: LoadPicture - problem!

            I said nothing about top posting .. actually I prefer it.


            "Anthony Jones" <Ant@yadayadaya da.comwrote in message news:uZBCQLPLHH A.1424@TK2MSFTN GP04.phx.gbl...
            >
            "Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message
            news:12pdmr0i7u btgec@corp.supe rnews.com...
            >please respond to the person who asked the question, not to the person who
            already provided the answer
            >>
            >
            Please don't top post. Please don't do this and please don't do that.
            Sheesh!
            >
            >
            >

            Comment

            Working...