Hi All, I wanna show Thumbnail in Data grid with using Image Control Dynamically...., Problem is that, i also wanna my Thumbnail not save in Hard disk, it direct show database to my Data grid..., I m using GetThumbnailImage for making the Thumbnail but Image
Control have not any function to get direct image.... Plz Help Thanx in advance Sajjad
Please Mark as Answer, if the post Solve your Problem
__________________________
Regards,
Sajjad Rizvi
C U ON NET
reply me : sajjaddotnet@yahoo.com
Thanx for urs reply, but my problem is, i wanna show Thumbnail in Image Control which are in Data Grid with out saving in Database or Harddisk..., in this article, Image shows simple browser, not in Image Control.... I think u understand my problem Thanx again...
Sajjad
Please Mark as Answer, if the post Solve your Problem
__________________________
Regards,
Sajjad Rizvi
C U ON NET
reply me : sajjaddotnet@yahoo.com
Not too hard, the plumbing would be just having <IMG> tag or <asp:Image> in DataGrid's ItemTemplate and its
src or ImageUrl attribute points to the URL to that handler/page. That's how it works because external resources (such as images) need to fetched with separate HTTP request from the HTML/markup itself.
E.g. You link to the custom page /hander which processes the request and generates the image from given parameters, from <IMG> / Image control.
Thanx for reply, My code is --------------------------- Dim a As Image Dim thum As Image Dim path As String path = Server.MapPath("1.jpg") a = a.FromFile(path) thum = a.GetThumbnailImage(50, 50, Nothing, IntPtr.Zero) thum.Save(Response.OutputStream, ImageFormat.Jpeg)
------------------------------------------- so how can i pass " thum.Save(Response.OutputStream, ImageFormat.Jpeg)" in Image control -> Image URL property..., plz give any sample code(Prefere in VB.NET), this is my great help, .... Thanx Once again Sajjad
Please Mark as Answer, if the post Solve your Problem
__________________________
Regards,
Sajjad Rizvi
C U ON NET
reply me : sajjaddotnet@yahoo.com
E.g as I explained on previous post, due to working of HTTP, the page where IMG tag resides fetches it from the given page (fetching actually happens by the browser, with separate requests, one for each image)
Thanx for reply, I try it, but it not working......,its headache for me..... plz write the code for this, if u don't mind... I wanna generate Thumbnail on Runtime, but it not store in harddisk or Database,and show in Image Control which are in data grid....
I can't under stand the Scenrio which are u give, because when Thumbnail generate by this command : thum = a.GetThumbnailImage(50, 50, Nothing, IntPtr.Zero) then how can i set the Image URL property of Image control to Thum..... plz help thanx Once again...
Sajjad
Please Mark as Answer, if the post Solve your Problem
__________________________
Regards,
Sajjad Rizvi
C U ON NET
reply me : sajjaddotnet@yahoo.com
imshally81
Participant
1555 Points
451 Posts
Thumbnail Problem
Jul 25, 2005 01:41 PM|LINK
__________________________
Regards,
Sajjad Rizvi
C U ON NET
reply me : sajjaddotnet@yahoo.com
DarrellNorton
All-Star
78942 Points
8720 Posts
Moderator
MVP
Re: Thumbnail Problem
Jul 25, 2005 02:12 PM|LINK
Creating Thumbnail Images on the fly with ASP.NET
Darrell Norton's Blog
Please click "Mark as Answer" if this helped you.
imshally81
Participant
1555 Points
451 Posts
Re: Thumbnail Problem
Jul 26, 2005 05:26 AM|LINK
__________________________
Regards,
Sajjad Rizvi
C U ON NET
reply me : sajjaddotnet@yahoo.com
imshally81
Participant
1555 Points
451 Posts
Re: Thumbnail Problem
Jul 27, 2005 11:53 AM|LINK
__________________________
Regards,
Sajjad Rizvi
C U ON NET
reply me : sajjaddotnet@yahoo.com
joteke
All-Star
46224 Points
6896 Posts
ASPInsiders
MVP
Re: Thumbnail Problem
Jul 27, 2005 12:28 PM|LINK
Web is full of code converters
http://www.kamalpatel.net/ConvertCSharp2VB.aspx
http://authors.aspalliance.com/aldotnet/examples/translate.aspx
There are also examples in VB.NET
http://www.developer.com/net/asp/article.php/3098311
Teemu Keiski
Finland, EU
imshally81
Participant
1555 Points
451 Posts
Re: Thumbnail Problem
Jul 28, 2005 09:05 AM|LINK
__________________________
Regards,
Sajjad Rizvi
C U ON NET
reply me : sajjaddotnet@yahoo.com
joteke
All-Star
46224 Points
6896 Posts
ASPInsiders
MVP
Re: Thumbnail Problem
Jul 28, 2005 12:52 PM|LINK
E.g. You link to the custom page /hander which processes the request and generates the image from given parameters, from <IMG> / Image control.
Teemu Keiski
Finland, EU
imshally81
Participant
1555 Points
451 Posts
Re: Thumbnail Problem
Jul 28, 2005 01:15 PM|LINK
__________________________
Regards,
Sajjad Rizvi
C U ON NET
reply me : sajjaddotnet@yahoo.com
joteke
All-Star
46224 Points
6896 Posts
ASPInsiders
MVP
Re: Thumbnail Problem
Jul 28, 2005 01:32 PM|LINK
It would be
<asp:TemplateColumn>
<ItemTemplate>
<asp:Image ID="image" runat="server" ImageUrl="imagegenerator.aspx" />
</ItemTemplate>
</asp:TemplateColumn>
E.g as I explained on previous post, due to working of HTTP, the page where IMG tag resides fetches it from the given page (fetching actually happens by the browser, with separate requests, one for each image)
Teemu Keiski
Finland, EU
imshally81
Participant
1555 Points
451 Posts
Re: Thumbnail Problem
Jul 29, 2005 08:48 AM|LINK
__________________________
Regards,
Sajjad Rizvi
C U ON NET
reply me : sajjaddotnet@yahoo.com