Click here to Skip to main content
15,896,557 members
Home / Discussions / Database
   

Database

 
GeneralSQL DTS Pin
vrkanth11-Jul-05 14:21
vrkanth11-Jul-05 14:21 
GeneralODBC Dialog Pin
Jmuwanga11-Jul-05 1:08
sussJmuwanga11-Jul-05 1:08 
GeneralURGENT:- ODBC connection string problem to access a remote SQL server Pin
Zalak10-Jul-05 20:02
Zalak10-Jul-05 20:02 
GeneralRe: URGENT:- ODBC connection string problem to access a remote SQL server Pin
Albert Pascual11-Jul-05 9:17
sitebuilderAlbert Pascual11-Jul-05 9:17 
GeneralXML Output spread over multiple rows Pin
totig10-Jul-05 19:41
totig10-Jul-05 19:41 
GeneralSqlDmo Pin
mahakhalid10-Jul-05 0:16
mahakhalid10-Jul-05 0:16 
GeneralRe: SqlDmo Pin
Mbat11-Jul-05 3:31
Mbat11-Jul-05 3:31 
Generalsql query Pin
Anonymous9-Jul-05 21:29
Anonymous9-Jul-05 21:29 
GeneralRe: sql query Pin
Colin Angus Mackay9-Jul-05 21:34
Colin Angus Mackay9-Jul-05 21:34 
GeneralDatabase project deployment advice Pin
Kunal Chaudhary9-Jul-05 9:08
Kunal Chaudhary9-Jul-05 9:08 
GeneralRe: Database project deployment advice Pin
Anonymous9-Jul-05 23:30
Anonymous9-Jul-05 23:30 
QuestionHow to check on Column value Pin
gharryh9-Jul-05 5:42
gharryh9-Jul-05 5:42 
GeneralInsert, Update and Delete Problem. Need Help. Thanks. Pin
shapper8-Jul-05 7:34
shapper8-Jul-05 7:34 
GeneralRe: Insert, Update and Delete Problem. Need Help. Thanks. Pin
Rob Graham8-Jul-05 8:08
Rob Graham8-Jul-05 8:08 
GeneralRe: Insert, Update and Delete Problem. Need Help. Thanks. Pin
shapper8-Jul-05 12:16
shapper8-Jul-05 12:16 
GeneralRe: Insert, Update and Delete Problem. Need Help. Thanks. Pin
Rob Graham8-Jul-05 17:16
Rob Graham8-Jul-05 17:16 
GeneralRe: Insert, Update and Delete Problem. Need Help. Thanks. Pin
jjrdk8-Jul-05 10:18
jjrdk8-Jul-05 10:18 
GeneralRe: Insert, Update and Delete Problem. Need Help. Thanks. Pin
Luis Alonso Ramos9-Jul-05 23:26
Luis Alonso Ramos9-Jul-05 23:26 
GeneralSQL Server; Recursive Functions and Scope. (Long-ish post) Pin
Alsvha8-Jul-05 3:45
Alsvha8-Jul-05 3:45 
Generalopening documents without saving to disk Pin
carabrenna8-Jul-05 0:26
carabrenna8-Jul-05 0:26 
Hallo,


I've opened a file from my oracle database via a OracleBlob format into a byte array and it works all very well, except that I would like it not to be saved on the c: drive
How can I do this ?

here is my code : Rose | [Rose]

protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
//roep functie docDownloadBlob aan en lees document in.
//Response.Clear();
DataSet ds = new DataSet();
Attachements oAttachement = new Attachements();
//Geeft ds terug
oAttachement.USER_ID = int.Parse(Session["userid"].ToString());
oAttachement.DOC_ID = int.Parse(Request.QueryString["DOC_ID"].ToString());
string m = oAttachement.GetBlob();
byte[] MyData = new byte[0];
if (m == "OK")
{
MyData = oAttachement.ByteData;
}
int ArraySize = new int();
ArraySize = MyData.GetUpperBound(0);
String DestinationLoc = "C:/ViewFiles.txt" ;
System.IO.FileStream fs = new System.IO.FileStream(@DestinationLoc, System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write);
System.IO.FileStream fs = new System.IO.FileStream(@DestinationLoc, System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Read);
fs.Write(MyData, 0, ArraySize);
StreamWriter sw = new StreamWriter(fs);
Response.AddHeader("Content-disposition", "attachment;filename=ViewFiles.txt");
Response.AddHeader("Content-Length", DestinationLoc.Length.ToString());
Response.ContentType = "application/txt";
Response.BinaryWrite(MyData);
fs.Close();

Can anyone help me with this please ?
tnx.


Cara
GeneralRe: opening documents without saving to disk Pin
Colin Angus Mackay8-Jul-05 3:13
Colin Angus Mackay8-Jul-05 3:13 
GeneralRe: opening documents without saving to disk Pin
Anonymous8-Jul-05 10:29
Anonymous8-Jul-05 10:29 
GeneralSQL vs. Access and ODBC Pin
-- NA --7-Jul-05 21:17
-- NA --7-Jul-05 21:17 
GeneralRe: SQL vs. Access and ODBC Pin
RajithCAlwis7-Jul-05 21:45
RajithCAlwis7-Jul-05 21:45 
GeneralRe: SQL vs. Access and ODBC Pin
-- NA --8-Jul-05 22:25
-- NA --8-Jul-05 22:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.