Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   LoadPicture - problem! (http://www.velocityreviews.com/forums/t802518-loadpicture-problem.html)

Iulian Ilea 12-21-2006 03:18 PM

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.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("UploadDir")&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.


Anthony Jones 12-22-2006 08:35 PM

Re: LoadPicture - problem!
 

"Jon Paal" <Jon nospam Paal @ everywhere dot com> 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.



Anthony Jones 12-31-2006 03:46 PM

Re: LoadPicture - problem!
 

"Jon Paal" <Jon nospam Paal @ everywhere dot com> 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!





All times are GMT. The time now is 12:14 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57