PC Review


Reply
Thread Tools Rate Thread

how do i read/open a file stored in a long binary format in a rec.

 
 
=?Utf-8?B?YWNjZXNzIHF1ZXJ5?=
Guest
Posts: n/a
 
      26th Feb 2005
i have a file stored as long binary field in the recordset. i want to open
that file and should be able to edit it at click of a button. how would i do
it????
i think i can use appendchunk/get chunk method ,but i donno how to use it??
 
Reply With Quote
 
 
 
 
John Nurick
Guest
Posts: n/a
 
      26th Feb 2005
What you need to do depends on whether the field contains an OLE package
containing the file (which is what happens if you drag a file's icon
onto an Access OLE field or BoundObjectFrame control), or whether the
field simply contains the binary contents of the file.

If the former, write code that drives a form and an ObjectFrame. If the
latter, Stephan Lebans recently posted this answer:

>There's code in my SaveRestoreRelationShipsWIndow MDB that shows how to
>Get Long Binary data directly from a Recordset.
>A search on GoogleGroups for my name and PUT or GET will show you how to
>Put or Get data from a long Binary field or a file on disk.
>--
>
>HTH
>Stephen Lebans
>http://www.lebans.com
>Access Code, Tips and Tricks





On Fri, 25 Feb 2005 22:21:02 -0800, access query <access
(E-Mail Removed)> wrote:

>i have a file stored as long binary field in the recordset. i want to open
>that file and should be able to edit it at click of a button. how would i do
>it????
>i think i can use appendchunk/get chunk method ,but i donno how to use it??


--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open file thru OLE Object "Long Binary Data" rmercado Microsoft Access Form Coding 0 20th Jan 2008 06:20 PM
Open Long Binary Object Rob Reckard Microsoft Access Forms 2 27th Oct 2006 10:08 PM
How to change binary data buffer read from a binary file to string format Anderson Microsoft VC .NET 1 21st Jul 2006 11:35 AM
Binary data stored in SQL Server: can't read from ASP.NET, *can* read from Access? Doug Microsoft ASP .NET 3 4th Nov 2005 07:35 PM
How can I read/write file with binary format??? NC Microsoft Excel Programming 2 27th May 2004 09:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:14 PM.