Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 19th, 2005, 04:22 AM
Authorized User
 
Join Date: Jul 2003
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default From DB back to Jpg Format

I haved saved pictures in SQL server now I wasnt it back in .jpg format how do I do that?


Proud To Be Pinoy
__________________
Proud To Be Pinoy
 
Old April 19th, 2005, 08:16 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

What type of application (project)?
What do you want to do with the jpg (stream to browser, show in picturebox, save to file)?

Please tell us a bit more about what you wish to do.
 
Old April 19th, 2005, 08:30 PM
Authorized User
 
Join Date: Jul 2003
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Im sorry for posting not clear qusetion.
Yes this is what I want to do, save to file.

Proud To Be Pinoy
 
Old April 20th, 2005, 05:32 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Look at the System.IO namespace. There you'll find classes that deal with binary streams. You'll need to get the binary data from the DB and get it into a file stream object so you can save it to disk.





Similar Threads
Thread Thread Starter Forum Replies Last Post
formatting dates back to Mysql date format melkin Classic ASP Professional 1 February 19th, 2008 01:58 PM
back up of the DB patmolard Access VBA 2 August 8th, 2006 09:18 AM
Retrive values to Drop down list from DB when Back choudhmh Pro VB.NET 2002/2003 0 January 12th, 2005 10:44 AM
history.back or hitting the back button won't work lian_a Classic ASP Basics 4 July 29th, 2004 12:14 AM
Text Format Preservation in DB spraveens PHP Databases 5 March 30th, 2004 05:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.