Thumbnail Problem

Rate It (1)

Last post 11-13-2008 3:43 PM by imshally81. 11 replies.

Sort Posts:

  • Thumbnail Problem

    07-25-2005, 9:41 AM
    • Participant
      1,551 point Participant
    • imshally81
    • Member since 11-05-2004, 11:47 PM
    • Great Pakistan
    • Posts 447
    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
  • Re: Thumbnail Problem

    07-25-2005, 10:12 AM
    • All-Star
      54,795 point All-Star
    • DarrellNorton
    • Member since 04-04-2003, 11:49 AM
    • VA, USA
    • Posts 6,595
    • Moderator
      TrustedFriends-MVPs
    Darrell Norton, MVP
    Darrell Norton's Blog


    Please mark this post as answered if it helped you!
  • Re: Thumbnail Problem

    07-26-2005, 1:26 AM
    • Participant
      1,551 point Participant
    • imshally81
    • Member since 11-05-2004, 11:47 PM
    • Great Pakistan
    • Posts 447
    This code is in C#, If u have vb.net version, so plz send me....
    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
  • Re: Thumbnail Problem

    07-27-2005, 7:53 AM
    • Participant
      1,551 point Participant
    • imshally81
    • Member since 11-05-2004, 11:47 PM
    • Great Pakistan
    • Posts 447
    Any One Else....... ?
    Please Mark as Answer, if the post Solve your Problem
    __________________________

    Regards,
    Sajjad Rizvi
    C U ON NET
    reply me : sajjaddotnet@yahoo.com
  • Re: Thumbnail Problem

    07-27-2005, 8:28 AM
    • All-Star
      46,040 point All-Star
    • joteke
    • Member since 06-16-2002, 3:24 PM
    • Kyro, Finland
    • Posts 6,879
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs
  • Re: Thumbnail Problem

    07-28-2005, 5:05 AM
    • Participant
      1,551 point Participant
    • imshally81
    • Member since 11-05-2004, 11:47 PM
    • Great Pakistan
    • Posts 447
    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
  • Re: Thumbnail Problem

    07-28-2005, 8:52 AM
    • All-Star
      46,040 point All-Star
    • joteke
    • Member since 06-16-2002, 3:24 PM
    • Kyro, Finland
    • Posts 6,879
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs
    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.
    Thanks,

    Teemu Keiski
    Finland, EU
  • Re: Thumbnail Problem

    07-28-2005, 9:15 AM
    • Participant
      1,551 point Participant
    • imshally81
    • Member since 11-05-2004, 11:47 PM
    • Great Pakistan
    • Posts 447
    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
  • Re: Thumbnail Problem

    07-28-2005, 9:32 AM
    • All-Star
      46,040 point All-Star
    • joteke
    • Member since 06-16-2002, 3:24 PM
    • Kyro, Finland
    • Posts 6,879
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs
    If that given code runs on imagegenerator.aspx without any querystring parameters given to the URL

    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)

    Thanks,

    Teemu Keiski
    Finland, EU
  • Re: Thumbnail Problem

    07-29-2005, 4:48 AM
    • Participant
      1,551 point Participant
    • imshally81
    • Member since 11-05-2004, 11:47 PM
    • Great Pakistan
    • Posts 447
    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
  • Re: Thumbnail Problem

    10-06-2008, 4:29 PM
    You need this resizing module... GetThumbnailImage has issues... And you'll need managed disk caching for performance reasons...
  • Re: Thumbnail Problem

    11-13-2008, 3:43 PM
    • Participant
      1,551 point Participant
    • imshally81
    • Member since 11-05-2004, 11:47 PM
    • Great Pakistan
    • Posts 447

     thanx dear .... for reply

    but itz 3 year old issue :)

    anywayz thanks once again and keep in touch :)

    Please Mark as Answer, if the post Solve your Problem
    __________________________

    Regards,
    Sajjad Rizvi
    C U ON NET
    reply me : sajjaddotnet@yahoo.com
Page 1 of 1 (12 items)