I can understand the desire to store different versions (sizes) of the images, I had the same idea originally, but I decided that this was just going to take up space on the file system, or in the database, that simply wasn't needed.
The whole premise of the Personal Site Starter Kit is to just have one version of the image, and then resize it as required.
Now when you would click on the hyperlink, the file would open.
Here you would define the sldatasource , get the hyperlink value to the pdf, now just bind it to the hyperlink's navigateurl property using the Eval function.
If the above posts about Image Files were helpful, please mark them as answers.
None
0 Points
15 Posts
NEED ADDITIONAL CODING FOR INSERTING IMAGE
Aug 16, 2009 02:31 AM|vellore.balaji|LINK
hello devopers .,
i m new to asp.net .... i facing diffculty in showing saved image (from database) to mediul small large image . ,
i gone thru this web site .. its awesome coding ., picture are dispalyed in mediul small large image..
can u provide me the coding to save the image in
bytes original
bytes thumb
bytes poster
bytes full .,
these are the database table elements to save the photo . ,
there is no insert coding for this .,
i need the insert coding , for this why they used three field to store the single image
i have normal image saving code ....
plz provide me the coding for this
personnelwebsitestarter kit IMAGE INSERT coding in personnelwebsitestarter kit
working as a Web Developer... in ASP.net Field
Star
10323 Points
3118 Posts
Re: NEED ADDITIONAL CODING FOR INSERTING IMAGE
Aug 16, 2009 04:42 AM|nijhawan.saurabh|LINK
Hi,
What you do is maintain a Thumbnail folder and a Image folder in your website root directory.
Now store the imagename.extention as text in the database.
Make sure the names of both, the thumbnail image and large image are same.
Now when you want to show the image, you just need to bind the foldername+imagename to the <asp:Image control.
None
0 Points
15 Posts
Re: NEED ADDITIONAL CODING FOR INSERTING IMAGE
Aug 16, 2009 01:25 PM|vellore.balaji|LINK
hi okay ., its nice .,
if i have the two different image with the same Name ...
then if i select the image using your method ., i hope it will result in false answer ...
inorder to overcome this i m going to store the image(thumbnalied,fullimage) directly to the sqlserver database ...
working as a Web Developer... in ASP.net Field
Star
10323 Points
3118 Posts
Re: NEED ADDITIONAL CODING FOR INSERTING IMAGE
Aug 16, 2009 01:46 PM|nijhawan.saurabh|LINK
Hi,
In that case what you can do is to have two fields in your database, one for storing the thumbnail image path.
Another field for storing the larger image path.
This way even if the paths for thumbnail and larger images are different , you can still succeed to fetch them.
Is this fine now?
None
0 Points
15 Posts
Re: NEED ADDITIONAL CODING FOR INSERTING IMAGE
Aug 16, 2009 02:53 PM|vellore.balaji|LINK
asper your concept i stored my image*( image1.jpg)in 1st folder category 1
same way i stored another image named image1.jpg in the 1st folder category 2
i m stored the image path in my database .,
if i retrive category 1 image .,
then what image will come ??? ???
think and giveme the solution (rember i have saved two images with same name image1.jpg)
working as a Web Developer... in ASP.net Field
Star
10323 Points
3118 Posts
Re: NEED ADDITIONAL CODING FOR INSERTING IMAGE
Aug 17, 2009 01:09 AM|nijhawan.saurabh|LINK
Hi,
How can you store two images by same name,, in same folder.
They got to be in different folders.
What problem are you facing, even if the names are same.
Make two folders one for thumbnails another for larger images.
And get the images.
Member
90 Points
65 Posts
Re: NEED ADDITIONAL CODING FOR INSERTING IMAGE
Aug 19, 2009 07:00 AM|gep13|LINK
Hello,
I can understand the desire to store different versions (sizes) of the images, I had the same idea originally, but I decided that this was just going to take up space on the file system, or in the database, that simply wasn't needed.
The whole premise of the Personal Site Starter Kit is to just have one version of the image, and then resize it as required.
Gary
Star
10323 Points
3118 Posts
Re: NEED ADDITIONAL CODING FOR INSERTING IMAGE
Aug 28, 2009 07:47 AM|nijhawan.saurabh|LINK
Hi Vellore,
I know you have two images by same name but different folders.
That wouldn't conflict with the work you want to do.
Have you tried creating two folders and having images's path store in the databae?
None
0 Points
15 Posts
Re: NEED ADDITIONAL CODING FOR INSERTING IMAGE
Sep 18, 2009 01:26 PM|vellore.balaji|LINK
hi your post is useful .. ,
i have to store PDF or word in folder .....
then
in grid i have one column like pdf name in hyperlink .... if i click the hyper link the corresponding pdf file should be open or saved
can u give me the coding ( storing & display in grid
)for this ...
PDF or DOCUMENT storing & display in grid
working as a Web Developer... in ASP.net Field
Star
10323 Points
3118 Posts
Re: NEED ADDITIONAL CODING FOR INSERTING IMAGE
Sep 18, 2009 01:44 PM|nijhawan.saurabh|LINK
Hi,
This is quiet simple to implement.
Store the pdf's path in the database.
Bind it to the Hyperlink's NavigateURL property.
Now when you would click on the hyperlink, the file would open.
Here you would define the sldatasource , get the hyperlink value to the pdf, now just bind it to the hyperlink's navigateurl property using the Eval function.
If the above posts about Image Files were helpful, please mark them as answers.