This topic is locked

Image Upload

2/28/2005 5:22:08 PM
ASPRunnerPro General questions
G
Greg Barnes author

I have a folder that I need to upload pictures into. I have modified the "uploader" code and it does upload the pictures into the correct folder, but I am not sure what to do after that to get them to display correctly when the page is viewed.

The DB name is Properties and the folder name is Pics.

The path to Pics is c:\Inetpub\wwwroot\properties\Pics
Any help would be greatly appreciated.
Greg

G
Greg Barnes author 3/1/2005

So I cant get any help in this issue???

Sergey Kornilov admin 3/2/2005

Greg,
you need to store relative path to your images in the database field.

For example: Pics/image1.jpg, Pics/image2.jpg etc.
In ASPRunner on the Formatting page set View as to File-based image for this field.
If you don't want to add "Pics/" in front of each image name you can do it on the fly. Here is tha sample SQL query:

select ...,

'pics/' + [ImageFileName] as NewImageFileName,

...

From TableName

G
Greg Barnes author 3/2/2005

so whould I even use the uploader page then?

Sergey Kornilov admin 3/3/2005

Greg,
As far as I understand you need uploader to upload files in combination with SQL code I mentioned.

N
neeb_1954 3/5/2005

Right i can get the image to upload to folder onserver but lost on adding the image to the user

Can anyone help
i have 3 fields say

Name

password

image1
i need to log in as name and password then upload an image to a folder called pics

i can upload the image but cant get it to update it to the named person.
Once again i dont want to use database image as it consumes too much Database 200 meg and growing
Thanks

Sergey Kornilov admin 3/7/2005

Hi,
image name needs to be entered manually.

500195 3/7/2005

Is there any way it can be done automatically Like its done when using a database image?

Sergey Kornilov admin 3/8/2005

Currently you have to enter image name manually.