ASP.NET thumbnail creating and saving RRS feed

  • Question

  • User895212817 posted
    Hello friends, how ru all, i have some problem about saving thumbnail, following is the code i use for creating thumbnail, thumbnail created successfully but i want to save this thumbnail into my folder but the method that i used not working for that pls tell me how can i save it through ASP.NET

    <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
    <%@ Import Namespace="System.Drawing.Imaging"%>
    <%@ Import Namespace="System.Drawing.image"%>
    <script language="VB" runat="server">
    Function ThumbnailCallback() as Boolean
    return False
    end function
    Sub Page_Load()
    Dim imageurl as string=Request.QueryString("img")
    imageurl="/images/" & imageurl
    Dim fullsizeimg as system.Drawing.Image
    fullsizeimg=System.Drawing.Image.FromFile(Server.M apPath("mug.gif"))
    'fullsizeimg.save(Response.outputstream,imageforma t.gif)
    Dim dummyCallBack as System.Drawing.Image.GetThumbnailImageAbort
    dummyCallBack=New system.drawing.image.GetThumbnailimageabort(Addres sOf ThumbnailCallback)
    Dim thumbnailimg as System.Drawing.Image
    thumbnailimg=fullsizeimg.GetthumbnailImage(100,100 ,dummyCallBack,IntPtr.Zero)
    End Sub

    pls review it and tell me about he function thanks
    Sunday, April 10, 2005 3:43 AM

All replies

  • User-95607119 posted

    What is the error you got?

    Monday, April 11, 2005 3:24 AM