Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
|
SQL Server ASP Discussions about ASP programming with Microsoft's SQL Server. For more ASP forums, see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 21st, 2003, 08:12 AM
Registered User
 
Join Date: Oct 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with uploading files

Hello all:

I am developing an app. I try to upload a file such as *.text into a colume with text type in a table in a database using the UpFile control.It failed.But I find that I can upload the same file into anther colume with image type in the same table.

Can anybody help?

thanks
kejun



 
Old October 21st, 2003, 11:12 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You are trying to pass a string that is longer than the allowable lenght fot your field.
Either change the field type on the database to a larger field (even blob) or do not allow such a long string to be uploaded to your database.
An image field is a Blob field and it is very large, that is the reason that you are able to load it into that image field.

Sal
 
Old October 22nd, 2003, 07:29 AM
Registered User
 
Join Date: Oct 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your opinion.

I think the size of text field for SQL Server database is supposed to be about 4GB.But the size of the file I try to upload is less than 1MB. Most of all,I want to build up a full-text index on the field.I don't think the image field is a full-text indexed field.

 
Old October 22nd, 2003, 08:20 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you'd better write to sal if you know his email address, it seems that no other guys can help.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Uploading files, I have a problem sinkhead Beginning PHP 1 May 11th, 2007 10:18 PM
Problem uploading multiple (audio-video) files suchi Pro JSP 0 May 8th, 2006 02:03 PM
Uploading Files sami PHP How-To 7 April 16th, 2004 02:29 PM
uploading files by c# rborsatti C# 2 September 29th, 2003 03:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.