473,387 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Retrieving date from sql server.

Hi!

I'm writting form applications wich will open files (*.doc, *.dsw, etc)
directly from database at the moment.
I read data from row (image column) and with reader and fill in data to byte
table (byte[]).
And how can I open the other aplication and load the data (byte[]).
I don't want to write the files on the hard disc and open them from code

best regards
Paul
Apr 11 '07 #1
2 1300
Very few applications support loading from memory accross processes.
You are most-likely going to have to write a file to the designated
"temp" area, ask the 2nd app to load it, then (when you are sure)
clean up after yourself. To illustrate with an example, a web-server
can stream BLOB data to the client from a memory buffer (since no
external processes are involved), but at the client the browser has to
write it to the local disk before opening the plugin / viewer.

Marc

Apr 12 '07 #2
Paul,

It completely depends on the application. More likely than not, Office
documents support the IPersistMemory interface, which you can use to load
documents from memory (you will have to load the byte array into unmanaged
memory though, or use unsafe code to provide a pointer to a the fixed array
pointer). However, for other applications, it depends completely them.

The best bet here, if you have a need to have multiple document types
opened by multiple applications is to save the file on the hard drive and
then have the shell open the appropriate program that is associated with the
file.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Pawel" <si*******@op.plwrote in message news:ev**********@news.onet.pl...
Hi!

I'm writting form applications wich will open files (*.doc, *.dsw, etc)
directly from database at the moment.
I read data from row (image column) and with reader and fill in data to
byte table (byte[]).
And how can I open the other aplication and load the data (byte[]).
I don't want to write the files on the hard disc and open them from code

best regards
Paul

Apr 12 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: bill yeager | last post by:
I would like to place the currently selected date (retrieved from the database) on a calendar control which is embedded inside a datagrid. However, I can't find the ID of the control to do so....
13
by: RHPT | last post by:
I am wanting to capture the XML posted by an InfoPath form with .NET, but I cannot figure out how to capture the XML stream sent back by the InfoPath form. With Classic ASP, I could just create an...
4
by: Dino Buljubasic | last post by:
Hi, I have noticed that when I use Socket.Receive(byte) it retrieves all information about files including day, month but without year. Date for directories is full though. What would be...
3
by: Dotnet Gruven | last post by:
I've built a WebForm with a Table added dynamically in Page_Load when IsPostBack is false. The table includes a couple of TextBoxes, RadioButtonLists and CheckboxLists. On postback, those...
0
by: cjbland | last post by:
First off I apologize if this has been discussed before, I'm not certain how to search for what I'm looking for so I figured I'd throw this out there and see what I got. I am working with a...
2
by: Sakke | last post by:
Hello! We have written a GCryptoSvr.dll COM server in C++. Inside that resides WebClient COM component. WebClient CLSID is {8DC27D48-F94C-434B-A509-C3E1A3E75B9E}. When we are using that...
1
by: myemail.an | last post by:
Hi all, I have a table with this structure: Customer ID | Transaction date | Transaction type 1 | 1/2/2008 | F 1 | 1/4/2007 | M...
2
by: =?Utf-8?B?U2FpbXZw?= | last post by:
Hi and Hello. Good Day. I have a problem in retrieving time in database. I have Table name "SAMPLE" and have field name "DATES" DATES -------------------------------------| 5/9/2008...
3
by: teo | last post by:
I'm developing a software (a WinApp, not a WebApp) to retrieve Date & Time from a web server, but firstly I need to to test it on my PC, with "localhost" I'm using the VB Net language (below...
3
by: AlfredE | last post by:
The perl::ftp's mdtm method returns the last mod date of a specified remote file. We've found that on our sftp server, the last mod date is often earlier than the date and time the file is actually...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.