How To Upload .txt Files To Sql Database Using (C#)
Apr 15, 2010how to upload .txt files to sql database using asp.net(C#)
View 1 Replieshow to upload .txt files to sql database using asp.net(C#)
View 1 Repliesneed complete ASP.Net with C# code to upload pdf ,word and image files ,save and also retrieving files from and to a SQL database directly.I need to have a webform which uploads different typesof files from hard drive to SQL database and also I want to retrive,delete,save these files in database
View 2 RepliesMy team working in asp.net projects Here we have to upload Excel contents to Database We are using linq.
View 2 RepliesIf you can I want Upload multiple files in database like this....
View 1 RepliesI am creating an application where the user can upload files upto 100mb into the database and retrieve them later. I used the asp.net uploald control. Looks like it can upload only files of size 4MB.
View 3 Repliesforeach (HttpPostedFile file in FileUpload1.PostedFile) {
string filename = Path.GetFileName(file.FileName);
string foldername = DateTime.Now.ToString();
Directory.CreateDirectory("../Webimage/"+foldername);
file.SaveAs(Server.MapPath("../Webimage/" + foldername + filename));
[Code] ....
I am getting this error under foreach
foreach statement cannot operate on variables of type 'system.web.httppostedfile'
I have an entity called a file which is the main part of my project. The file has invoices and timesheets captured against it. So I have a file tab with info about the file, like FileNumber, Vessedl, Voyage etc. Now I need to be able to upload documents for the file. So I will add an uploads tab. But the uploaded documents need to be saved for the specified file the user uploads it for. then when a user opens a file I need to show the documents for that file in a list of some sort. the best way to do this. What's the best way to upload multiple files? should I store all the info in my database?
View 36 RepliesIs it possible to upload .obj files ( 3D models ) to an sql server database?
View 1 RepliesI'd like to allow users to upload a .pdf file via the file upload control (if that's the best method), save the file to the db and then retrieve it so they can click on a link and open the .pdf they've uploaded. I've been looking for a tutorial on how to do this but keep running into methods of saving the file directly on the server in a directory, not in SQL server (using Linq and VB by the way)
View 4 RepliesIm using a file uploader to upoad files to a folder used for upload.But the problem is this folder is a linux folder. I have made it a shared folder so that I can access from windows by samba. So, file transfer is successful when I'm using os but when I try to upload something from my websites uploader to this folder, this process is not successful. I have given all permissions to this folder.Don't know whats the problem.I have used both type of slashes for directory but still it is not successful.
View 4 Repliesi am trying to upload files through the ASP.NET File Upload control.
Every thing is working fine, except for the fact that when i try to upload the file on the server i am getting an error: (probably some authorization exception).
do i need to give some rights to the upload up there on the server. If so then for which account and do i need to restart the server after giving rights?
I want to allow a user to upload several files with one upload action. What is the simplest way to do this?
View 3 RepliesI have upload my files in domain.after uploading,i run the site.i get the following error The EXECUTE permission was denied on the object 'xxxxxxx', database 'zzzzzzz', schema 'dbo'. what reason for this error raised and how to solve it?.
View 2 Repliesi am using file upload control to upload the files in asp.net with vb.net as code behind. am storing the files in my local drive. my doubt is, how shall i read those file using asp.net application.
View 1 RepliesI need to populate a database (SQL Server) with some data from a templated excel document.Here are some approaches:
A) User upload a file.xls or file.csv that the server reads, checks and updates the database (cons:the uploaded file might be too big. file.* needs to be in correct format)
B) User downloads a tool.exe to read and upload file.xls (cons: maintenance of the tool.exe)
C) Use of a web service in excel? (don't know how to do it) but
this article might give you a hint
Which one is the best to use? Are there any others?
how do i upload 20mb files using ASP.net. (using file upload control i have mentioned the following in httpruntime of web config file.
executionTimeout="90"
maxRequestLength="65536"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100"
enableVersionHeader="true"
How to upload files from ASP.NET web application to any web server(linux)..
View 2 RepliesI've been looking for a way to achieve this behavior and I found this sample project.
The trick in this project is that it changes the form target to an iframe created on the fly.
So far so good, I can get the byte[] on the server-side. But I need to change an image preview after the file is uploaded.
How can I get the iframe to update the main page? Would I have to save it on a file on the disk, make a javascript callback to change the image url? Is there another way to do this? What's recommended?
I have deployed my software on a server,In my software there is a tool which reads an excel file and displays the content in a gridView.
It's working fine on my stand-alone PC, how can I do it on the web?
Should I upload my excel files on server and then read it or directly read it from the user's PC?
I am unable to upload files, here is my aspx file
<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminSite.Master"
i write a FileServer Project (For uploading Files and give them to users), it is webapplication, i want to upload files to another server ( i mean another computer), i have its address : (172.16.10.30), so what should i do?
View 7 Repliesi want to upload files that are only jpeg, jpg etc. But i couldn't filter the files in the opening window. I want to change the text "all files" to jpeg etc. in the asp.net. (C#)
View 3 Replieshow to store files (pdf and word files) into sql database and how to display that files with an option of "save" , "open" window from sql data base when user click. i am doing project using c# + asp.net web application
View 1 RepliesThat's maybe a strange subject but it was the best I could come up with. The thing is I need to upload a set of files from a web site into our CMS. I know how to do this via a file upload control but is it possible to do this when I've instead got URL's to the files? They are pictures by the way. Is it possible to get a file located on another server into a Stream?
View 8 RepliesCan I upload files without having a fileupload control? I was looking at the HttpFileCollection class, but I believe that only works with the fileupload control.
View 18 Replies