 |
| 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
|
|
|
|

August 19th, 2008, 12:28 AM
|
|
Authorized User
|
|
Join Date: Jul 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

August 19th, 2008, 12:03 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
|
|
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
|
|

August 19th, 2008, 11:34 PM
|
|
Authorized User
|
|
Join Date: Jul 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

August 20th, 2008, 07:30 AM
|
|
Friend of Wrox
|
|
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
|
|
are you definitely storing the image binary in the database or just a path to the image?
Jason Hall
|
|

August 20th, 2008, 02:26 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
|
|
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.)
|
|

August 23rd, 2008, 04:34 AM
|
|
Authorized User
|
|
Join Date: Jul 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

August 27th, 2008, 04:40 AM
|
|
Authorized User
|
|
Join Date: Jul 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

August 27th, 2008, 04:57 AM
|
|
Authorized User
|
|
Join Date: Jul 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|
 |