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 December 18th, 2005, 11:06 AM
smrtelnik smrtelnik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 11 smrtelnik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 43 m 38 sec
Reputation Power: 0
How to store images in BLOB field???

Hello.
I have one problem. I'm making an aplication in Visual FoxPro 7.0 with Firebird 1.5.2. And I need to store images in DB, in BLOB field. But how to resolve this problem? In VFP 7.0 there is no API function and I found also no UDF for Firebird. I dont know how to do it. I dont want to do this with IBExpert, or FSQL. I want to do it programmatically.
Thank you for your help.

smrtelnik

Reply With Quote
  #2  
Old December 19th, 2005, 01:18 AM
goreXP's Avatar
goreXP goreXP is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Bucharest
Posts: 72 goreXP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 10 m 10 sec
Reputation Power: 6
Send a message via MSN to goreXP Send a message via Yahoo to goreXP
Quote:
Originally Posted by smrtelnik
Hello.
I have one problem. I'm making an aplication in Visual FoxPro 7.0 with Firebird 1.5.2. And I need to store images in DB, in BLOB field. But how to resolve this problem? In VFP 7.0 there is no API function and I found also no UDF for Firebird. I dont know how to do it. I dont want to do this with IBExpert, or FSQL. I want to do it programmatically.
Thank you for your help.

smrtelnik

You can use StrToFile() and FileToStr()
__________________
Romania it's a beautiful country ... too bad that it's populated with ... peoples!

Reply With Quote
  #3  
Old January 3rd, 2006, 03:09 AM
smrtelnik smrtelnik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 11 smrtelnik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 43 m 38 sec
Reputation Power: 0
Ok, but this way I can save only little images, due to Varchar limitations.

Reply With Quote
  #4  
Old February 23rd, 2006, 07:11 PM
luis.junges luis.junges is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 1 luis.junges User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 3 sec
Reputation Power: 0
...
you can get the image raw data and put it into the blob.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > How to store images in BLOB field???


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 1 hosted by Hostway
Stay green...Green IT