Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

Error when upload the image file to database

Last post 08-09-2010, 10:29 AM by cutechat. 2 replies.
Sort Posts: Previous Next
  •  08-03-2010, 1:55 AM 62989

    Error when upload the image file to database

    Hi ,
    we got error when upload image file to database directly.
    the error message is : "Message from webpage. Server site exception: failed to upload [my filename]. System.Data.Sqlclient.SqlException: Procedure 'WebXpress_AjaxUploader_Append' expects parameter '@Guid' which was not supplied at WebExpressManagement ....."
     
    'WebXpress_AjaxUploader_Append'  is stored procedure, and the parameter '@Guid' passed from
    public override void AppendData(Guid guid, string filename, System.IO.Stream stream)
    or
    public override void Save(Guid guid, string filename, System.IO.Stream stream)
     
     
     
    we created our own provider, the source code sample is from http://cutesoft.net/forums/thread/57229.aspx.
     
    any help will be really appreciated!
     
    Best Regards
     
  •  08-04-2010, 7:29 PM 63102 in reply to 62989

    Re: Error when upload the image file to database

    Hi
    the error is reported by our user, we cannot repeat the same error. checked the database found the most of upload files cut off at 65536 bytes and the Uploader_FileUploaded event have not been fired yet.
    looked around the forum, we found one similar issue, http://cutesoft.net/forums/thread/47795.aspx.
     
    so we changed the uploadtype from auto to flash, hope this help.
     
    if you have any other better idea, please let me know.
     
    thanks a lot. 
  •  08-09-2010, 10:29 AM 63262 in reply to 62989

    Re: Error when upload the image file to database

    Hi,
     
    When you use Silverlight mode, you need implement the AppendData method correctly.
     
    Because Silverlight will split the file into small pieces , and call Save once, and then call AppendData many times.
     
    Regards,
    Terry
     
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.