Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 27th, 2005, 01:27 PM
jccorner jccorner is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 45 jccorner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m
Reputation Power: 5
Storing photos in the database

I've researched this to death and have found a way to accomplish storing photos in my firebird db, here's my code:

Code:
Do While FBReader.Read() Then
                Dim FBArray(FBReader.GetBytes(1, 0, Nothing, 0, Integer.MaxValue) - 1) As Byte
                FBReader.GetBytes(1, 0, FBArray, 0, FBArray.Length)
                Dim DataStream As New System.IO.MemoryStream(FBArray)
                If Not DataStream Is Nothing Then imgMain1.Image = System.Drawing.Image.FromStream(DataStream)
            Loop


I'm trying to cut down the time it takes to load the photos (not related to earlier post of slow connection time). Would anyone know of a different way to load the photos and store them in the db?? Greatly appreciate the assist.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Storing photos in the database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT