Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - writing an binary file from sql to the disk with vb.net

Reply
 
Old 02-11-2009   #1 (permalink)
Jack


 
 

writing an binary file from sql to the disk with vb.net

Hello,

I need to get a binary file from SQL and write it to the disk in VB.net.

Thank you for any help and your time!!

Thanks,

Jack

My System SpecsSystem Spec
Old 02-11-2009   #2 (permalink)
Göran Andersson


 
 

Re: writing an binary file from sql to the disk with vb.net

Jack wrote:
Quote:

> Hello,
>
> I need to get a binary file from SQL and write it to the disk in VB.net.
>
> Thank you for any help and your time!!
>
> Thanks,
>
> Jack
When you read the field from the database you get a byte array. Use the
File.WriteAllBytes method to write the array to a file.

--
Göran Andersson
_____
http://www.guffa.com
My System SpecsSystem Spec
Old 02-12-2009   #3 (permalink)
Cor Ligthert[MVP]


 
 

Re: writing an binary file from sql to the disk with vb.net

There is much more about image on this website.

http://www.vb-tips.com/ImageInDatabase.aspx

Be aware that this is a sample from northwind where images are stored as ole
objects

Normaly you don't need the 76 space

Cor


"Jack" <jouin@xxxxxx> wrote in message
news:56997436-14AE-46EB-B461-DEBB4B03E64D@xxxxxx
Quote:

> Hello,
>
> I need to get a binary file from SQL and write it to the disk in VB.net.
>
> Thank you for any help and your time!!
>
> Thanks,
>
> Jack
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: Altering a binary file on the fly .NET General
search and replace in binary file VB Script
Read and search through a binary file PowerShell
Vista Writing to disk Vista performance & maintenance
How to embed manifest in TCL binary? - mt.exe corrupting my binary Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46