Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[3905] Uploading Images to a Database

Last post 06-15-2006 1:52 PM by KingNetSurfer. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [3905] Uploading Images to a Database

    This thread is for discussions of Uploading Images to a Database.

    • Post Points: 45
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 09-20-2003 10:19 PM In reply to

    • talon121
    • Not Ranked
    • Joined on 09-20-2003
    • New Member
    • Points 10

    Help with this..

    Ok,

    Im sorta new to ASP.Net and Ive got the image upload to blob working ...

    But for this to be moreso practical, it would be nice to see the ability to upload into another field, the thumbnail automatically generated from the blob data. (or when it gets uploaded).

    Can someone help or point me in the right direction?!?!

    Im desperate
    • Post Points: 0
  • 12-28-2004 5:32 AM In reply to

    • sandy007
    • Not Ranked
    • Joined on 12-28-2004
    • New Member
    • Points 10

    What is benifit of storing files to SQL

    Hello,

    I need some more idea on this topic. What is benifit to store data into SQL server (means into BLOB chartype in SQL). Why can not we just store file on to PC and just add link name into SQL.

    Please can anybody give me this ans.

    Thanks
    • Post Points: 0
  • 05-18-2005 2:57 PM In reply to

    • oramike
    • Not Ranked
    • Joined on 04-14-2005
    • New Member
    • Points 30

    how do retrieve the uploaded document retaining th

    i have been able to implement this and i now upload all sorts of documents including images into my sql server database. i now need to retrieve the document in the original format (.doc, .xls, .jpg, etc). pls, i do i achieve that?
    • Post Points: 0
  • 07-08-2005 4:13 PM In reply to

    Better control of file updates.  On file server, anybody can update files without letting anyone know about it.  If you store a file inside SQL database, it will show who last updated files, inform users when it expires, requiring updates and so on.  I administer 230 manual documents that shows original creator, date of implementation, maintainer and updated date.  Very useful and uniform in updates and maintenance.

    • Post Points: 0
  • 08-02-2005 11:06 AM In reply to

    enctype?

    The explanatory text says "The first interesting point about our webform, is the attribute "enctype". Enctype tells the browser and server that we will be uploading some type of binary data" but I don't see enctype in the code samples. Have I missed something?

    Les
    • Post Points: 0
  • 09-03-2005 8:39 AM In reply to

    Uploading

    Hi,   Whts the benifit of uploading images in database server when i can place images on web server in my directory and accesss them. Reply soon.
    • Post Points: 0
  • 11-02-2005 9:48 AM In reply to

    • zioturo
    • Not Ranked
    • Joined on 11-02-2005
    • New Member
    • Points 10

    Image upload and thumbnails

    The easiest way to upload and resize an image to the internet and automatically create thumbnails is I-Load.
    I-Load is a FREE ASP.NET web control with numerous benefits and features.
    You can download I-Load (it's FREE!) and view an online demo here:

    http://www.radactive.com/en/Products/ILoad/Overview.aspx
    • Post Points: 0
  • 06-15-2006 1:52 PM In reply to

    Re: [3905] Uploading Images to a Database

    This may sound weird but I think I'm the only one not having perfect success with this.

    I'm getting a System.NullReferenceException: Object reference not set to an instance of an object.
    on the line


    Stream imgStream = UploadFile.PostedFile.InputStream;

    [NullReferenceException: Object reference not set to an instance of an object.]
    DBImages.UploadImage.BtnUpload_Click(Object sender, EventArgs e) in c:\Inetpub\wwwroot\official-certify\Media\SubmitJon.aspx.cs:70
    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33

    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102










    I'm not sure why I'm getting this error. I copied the code verbatum and then added references for my other fields that I'm pulling in.

    I have no idea what the stack trace is all about, like I understand stacks, but the way these are formatted makes no sense to me, although here's what's in it maybe you guys will know.

    ((my button is exactly the same just named BtnUpload as opposed to UploadBtn.))

    If anyone could help it would be greatly appreciated. It's been driving me nuts I've run into a bunch of other errors that I've fixed, mostly missing a ";" but I've taken care of them all, this is the only one I haven't figured out yet (well unless there's more after this one is fixed) Thanks in advance for the help








    • Post Points: 5
Page 1 of 1 (9 items)