If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Jpg image in a byte column

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-04-05, 04:26
silviu_stoica silviu_stoica is offline
Registered User
 
Join Date: Jan 2002
Posts: 11
Jpg image in a byte column

Hi all,
I tried to insert a .jpg image in a byte column created in a blobspace and it didn't want to. A .bmp image works to be inserted but is too much. Can anybody give me a hint or an advice?

Thank you in advance.
Silviu
Reply With Quote
  #2 (permalink)  
Old 10-04-05, 10:31
blackguard blackguard is offline
Registered User
 
Join Date: Sep 2002
Posts: 102
What error did you get? You might just need to add more chunks to your blobspace.
Reply With Quote
  #3 (permalink)  
Old 10-05-05, 00:57
silviu_stoica silviu_stoica is offline
Registered User
 
Join Date: Jan 2002
Posts: 11
No, I have plenty of space in blobspace. It said is an invalid format to put in this space. The table has a column created with 'poza byte in blobdbs' where blobdbs is the name of the blobspace.
Thank you,
Silviu
Reply With Quote
  #4 (permalink)  
Old 10-05-05, 07:42
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,

Please check the size of page of blobpage.
Or create sbspace and insert into.

Gustavo.
Reply With Quote
  #5 (permalink)  
Old 10-05-05, 08:00
silviu_stoica silviu_stoica is offline
Registered User
 
Join Date: Jan 2002
Posts: 11
The blobpage is 10 time of 2k. And yes, I have a sbspace too, but i don't understand what is the reason that i can insert a .bmp image in a blobspace and i can't insert a .jpg image.
Silviu
Reply With Quote
  #6 (permalink)  
Old 10-05-05, 08:42
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,
I agree.
You tested with other .jpg. The files .jpg are write from Windows ?, on the same machine ?

Gustavo.
Reply With Quote
  #7 (permalink)  
Old 10-05-05, 09:17
silviu_stoica silviu_stoica is offline
Registered User
 
Join Date: Jan 2002
Posts: 11
Yes. We made some photos for our employees and wanted to insert them in a column name "poza" in a table name "angajat" to assign an image to every employee. We succeded it only with the images formatted as a .bmp and this is about 200k for every image. Is not much but is annoying to not insert a .jpg, that is about 20k, in byte field.

Thank you,
Silviu
Reply With Quote
  #8 (permalink)  
Old 10-05-05, 10:32
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,

One question, are you use CLIENT-SDK ?, the write to database is via ODBC ?. You test the configuration environment, buffer size, etc ?

Gustavo.
Reply With Quote
  #9 (permalink)  
Old 10-05-05, 15:09
blackguard blackguard is offline
Registered User
 
Join Date: Sep 2002
Posts: 102
There must be some kind of error when you can't write the jpg blob.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On