7
Shouts

Web 2.0 | Reading and Writing BLOB Data to MS SQL or Oracle Database

published 888 days, 14 hours, 57 minutes ago posted by farooqkaiserfarooqkaiser 889 days, 6 hours, 33 minutes ago
Saturday, December 19, 2009 10:14:29 AM GMT Friday, December 18, 2009 6:38:22 PM GMT

In this article, i will examine how to store and retrieve binary files such as image or PDF into MS SQL or Oracle database. Reading a File into a Byte Array 1:byte[] mbarrImg = null; 2:using (FileStream fs = new FileStream(FileName, FileMode.Open, FileAccess.Read, FileShare.Read)) 3: { 4: mbarrImg = newbyte[fs.Length]; 5:int iBytesRead = fs.Read(m_barrImg, 0, (int)fs.Length); 6: fs.Close(); 7: }

Saving BLOB data from a file to Oracle

For oracl...
category: SQL | clicked: 0 | | source: www.fairnet.com | show counter code
tags: SQL Server, .NET, C#, Oracle

1 comment posted.

To post your comment please login or signup