LoadPicture - problem!

LoadPicture - problem!

am 21.12.2006 16:18:55 von iulian.ilea

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.CreateObject("Scripting.FileSystemObject")
if not fs.fileExists(img) then exit sub
set myImg = loadpicture(img)
iWidth = round(myImg.width / 26.4583)
iHeight = round(myImg.height / 26.4583)
----------

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

img =
Server.MapPath("../../../")&Session("IG").getValue("UploadDi r")&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.

Re: LoadPicture - problem!

am 21.12.2006 18:02:13 von Jon Paal

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

"../../../"


"Iulian Ilea" wrote in message news:1166714335.574070.235270@f1g2000cwa.googlegroups.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.CreateObject("Scripting.FileSystemObject")
> if not fs.fileExists(img) then exit sub
> set myImg = loadpicture(img)
> iWidth = round(myImg.width / 26.4583)
> iHeight = round(myImg.height / 26.4583)
> ----------
>
> File is found but when trying to load I get something like permision
> denied.
>
> img =
> Server.MapPath("../../../")&Session("IG").getValue("UploadDi r")&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.
>

Re: LoadPicture - problem!

am 22.12.2006 21:35:28 von Anthony Jones

"Jon Paal" wrote in message
news:12olfglitf94r1c@corp.supernews.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.

Re: LoadPicture - problem!

am 30.12.2006 22:35:11 von Jon Paal

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


"Anthony Jones" wrote in message news:u7%23B5igJHHA.1240@TK2MSFTNGP03.phx.gbl...
>
> "Jon Paal" wrote in message
> news:12olfglitf94r1c@corp.supernews.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.
>
>

Re: LoadPicture - problem!

am 31.12.2006 16:46:16 von Anthony Jones

"Jon Paal" wrote in message
news:12pdmr0i7ubtgec@corp.supernews.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!

Re: LoadPicture - problem!

am 31.12.2006 20:49:20 von Jon Paal

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


"Anthony Jones" wrote in message news:uZBCQLPLHHA.1424@TK2MSFTNGP04.phx.gbl...
>
> "Jon Paal" wrote in message
> news:12pdmr0i7ubtgec@corp.supernews.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!
>
>
>