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 oracle, ...




Комментариев нет, оставьте первый комментарий.