Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 19th, 2008, 12:28 AM
Authorized User
 
Join Date: Jul 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default image hosting (link to forums)

hi fellows
I am going to develop an image hosting web site in ASP.net 2.0 (C#)
I know how to upload image and save it into the database or on hard disk.
But i am quite confused about the links. as we all know that the image hosting web sites give the links to display image in forums and web sites

1. Direct link (Just a link to download image)
2. Thumb link (image will be shown as Thumb in Forum)
3. Full image link (Full image will be shown in the forum)

I am using C#
Can any body know about that, Can u help me please?

aliusmankhan
__________________
aliusmankhan
 
Old August 19th, 2008, 12:03 PM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

if you are storing the image it self in a database then all image links will probably have to go to the same page with a querystring holding the image id, then query the db on that page and output the binary. you can even throw in another querystring to determine if the image should be output as a full size or a thumb size....

Jason Hall
 
Old August 19th, 2008, 11:34 PM
Authorized User
 
Join Date: Jul 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by alliancejhall
 if you are storing the image it self in a database then all image links will probably have to go to the same page with a querystring holding the image id, then query the db on that page and output the binary. you can even throw in another querystring to determine if the image should be output as a full size or a thumb size....

Jason Hall
Thank you for your reply
would u please guide me more on this?

aliusmankhan
 
Old August 20th, 2008, 07:30 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

are you definitely storing the image binary in the database or just a path to the image?

Jason Hall
 
Old August 20th, 2008, 02:26 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

In addition to Jason's question about where you are storing the images:

Are you storing *both* the thumbnail images *and* the full size images? Or are you perhaps storing 3 sizes? Original, forum size, and thumbnail size? Or do you expect to do the resizing "on the fly" as images are requested? (I don't recommend the "on the fly" solution unless your site will be lightly used. But you *could* do it "on demand", such that the first person who needed a thumbnail would cause it to be generated and then stored in the DB and then subsequent requests for it would just get it from the DB. But if you know that all the images of all sizes will be used often, it would be easier/better to just store all 3 sizes and be done with it. Or two sizes, whichever.)
 
Old August 23rd, 2008, 04:34 AM
Authorized User
 
Join Date: Jul 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank You Guys for reply
alliancejhall : I am doing it in both cases, i will save the image in database Normally but if some one dont have SQL database server hosting facility then i will provide them the solution without database, in this case i will save the image in hard disk, so i need help in both cases
Old Pedant : I am just inserting the original image to database and in case of HD save i will save the original image to hard disk, but definatly i will give the 3 options, Direct link, thumbs, and Full size image


aliusmankhan
 
Old August 23rd, 2008, 05:47 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You may want to take a look here: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=414 to get some inspiration and working code to save images on disk and in a database.

Hope this helps,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old August 27th, 2008, 04:40 AM
Authorized User
 
Join Date: Jul 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Imar
 You may want to take a look here: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=414 to get some inspiration and working code to save images on disk and in a database.

Hope this helps,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Thank you for reply dear, But i already know how to store image in Database and Hard disk, I need the information about how to show image that stored image is FORUMS

aliusmankhan
 
Old August 27th, 2008, 04:44 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
quote:I need the information about how to show image that stored image is FORUMS
Heuh? That didn't make any sense to me.

What exactly are you asking?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old August 27th, 2008, 04:57 AM
Authorized User
 
Join Date: Jul 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear in any image hosting web site when we upload a pic, they will give us three types of links
1. Direct link (Just a link to download image)
2. Thumb link (image will be shown as Thumb in Forum)
3. Full image link (Full image will be shown in the forum)

i wanna know how to give links to image uploader so that he/she can post that given link to any forum to display his/her uploaded pic to that forum?



aliusmankhan





Similar Threads
Thread Thread Starter Forum Replies Last Post
create a moving link/image panuvin Javascript How-To 1 October 26th, 2007 07:09 AM
Image and Link in DataGrid Anantsharma ASP.NET 1.0 and 1.1 Basics 1 April 15th, 2005 12:00 AM
Simple subselect & image link ymoisan Excel VBA 0 May 4th, 2004 10:04 AM
dynamic link to image in report wolf27ea Access VBA 2 February 3rd, 2004 10:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.