What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 49584 |  Welcome, Guest!   Register  Login
 Home > Forums > Sql Server > Upload word doc to SQL Server ...
Parsen

Upload word doc to SQL Server

Replies: 4 | Posted by: Parsen on 9/25/2012 | Category: Sql Server Forums | Views: 278 | Status: [Member] | Points: 10  


Hi
I need some help on code to "Upload a word doc to SQL Server as a byte" and next criteria is to "retrieve the same as doc"
Thanks


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Vikash
Vikash  
Posted on: 9/26/2012 2:40:15 AM
Level: Starter | Status: [Member] | Points: 25

Here u will find ur complete solution, not for a word doc file but for any file(like image).

http://www.c-sharpcorner.com/uploadfile/krishnasarala/inserting-file-and-retrieving-it-from-sql-server-in-Asp-Net/

if helpful, mark as answer.

Regards,
Vikash Pathak

Parsen, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Hariinakoti
Hariinakoti  
Posted on: 9/26/2012 7:39:14 AM
Level: Starter | Status: [Member] | Points: 25

Hi Parsen,
see this links.I think it is useful to u
http://www.codeproject.com/Articles/225446/Uploading-and-downloading-files-to-from-a-SQL-Serv
http://www.codeproject.com/Articles/308552/Upload-and-Download-Files-to-SQL-Servers-in-ASP-Ne

Thanks & Regards
Hari

Parsen, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Hariinakoti
Hariinakoti  
Posted on: 9/26/2012 7:39:54 AM
Level: Starter | Status: [Member] | Points: 25

Please Mark As Answer if u satisfy with my answer.

Thanks & Regards
Hari

Parsen, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Pandians
Pandians  
Posted on: 9/26/2012 10:07:37 AM
Level: Silver | Status: [Member] [MVP] | Points: 25

You can use VARBINARY datatype and OPENROWSET with BULK option in SQL Server!

Check it out!
Create Table DocObjects

(
Slno Int Identity(1,1),
Doc VarBinary(MAX)
)
Go

Insert DocObjects(Doc)
SELECT * from OPENROWSET(BULK N'D:\Sampledoc.docx', SINGLE_BLOB) as Doc
Go


Cheers
www.SQLServerbuddy.blogspot.com
iLink Multitech Solutions

Parsen, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 9:28:12 AM