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 3rd, 2007, 12:49 PM
yamazaki052 yamazaki052 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 27 yamazaki052 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 6 h 26 m
Reputation Power: 0
Exclamation Problem with Blob type

Hi All !!!!!!!

I'm new in firebird, and i have a problem with blob type, I read for strings the blob type just accept 64k but i need store strings with more size.

how can I do that?

I'm programming in VB. NET.

Please help me.

Thanks a lot. yamazaki052

Reply With Quote
  #2  
Old December 3rd, 2007, 01:23 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,066 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 4 Weeks 1 h 56 m 57 sec
Reputation Power: 281
Quote:
Originally Posted by yamazaki052
... I read for strings the blob type just accept 64k but i need store strings with more size.
...
Where did you read that? See here for reference.
Quote:
Do you need to store very long strings ?
Single VARCHAR column is restricted to 32K bytes (i.e. about 10K Unicode characters).
Maximum blob size is (according to Operation Guide):

1Kb page size => 64 Mb
2Kb page size => 512 Mb
4Kb page size => 4 Gb
8Kb page size => 32 Gb

Last edited by pabloj : December 3rd, 2007 at 01:32 PM.

Reply With Quote
  #3  
Old December 3rd, 2007, 03:12 PM
yamazaki052 yamazaki052 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 27 yamazaki052 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 6 h 26 m
Reputation Power: 0
problems with blob

I was read this in other page, but i can't understand it.

Could you send me an example to declare a field for example if i need manipulate strings with 64 MB.

Thanks a lot. Yamazaki052

Reply With Quote
  #4  
Old December 3rd, 2007, 03:43 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,066 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 4 Weeks 1 h 56 m 57 sec
Reputation Power: 281
Declare it as BLOB, if your database has a pagesize of 1Kb your BLOB field will have a max size of 64Mb (this is by design).
AFAIK default pagesize should be 4Kb thus BLOB will be 4Gb, nowere I see the 64Kb you mentioned.

Reply With Quote
  #5  
Old December 3rd, 2007, 03:44 PM
yamazaki052 yamazaki052 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 27 yamazaki052 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 6 h 26 m
Reputation Power: 0
Problems with blob

Here is an example of my probles, I'm trying to program a software to copy MS-JET Data Base (Access) to fireBird, in some fields, I store strings very very large, when this field is copy to my new data base my program crash.

I copy The string in a .txt file and the file size was 159 kb

o could you give me an example in VB.net code.

Thanks a lot for your help.

Yamazaki052

Reply With Quote
  #6  
Old December 3rd, 2007, 03:49 PM
yamazaki052 yamazaki052 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 27 yamazaki052 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 6 h 26 m
Reputation Power: 0
this is the form I declare this field

LEY_TEXTO BLOB SUB_TYPE 1 SEGMENT SIZE 80 CHARACTER SET NONE

I Use this in a SQL Order In VB. net to create the field.

Reply With Quote
  #7  
Old December 4th, 2007, 09:07 AM
yamazaki052 yamazaki052 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 27 yamazaki052 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 6 h 26 m
Reputation Power: 0
Hi all.

Ok. I understand the problem.

Pabloj help me to understand the blob field, maybe the problem is not the field.

May be is the string variable in VB.net. all program run ok, just when I pass the string to blob field crash, Someone could help me please.

Thax in advance.

Yamazaki052

Reply With Quote
  #8  
Old December 4th, 2007, 09:15 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,066 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 4 Weeks 1 h 56 m 57 sec
Reputation Power: 281
See this example

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Problem with Blob type


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