Entering images into iAnywhere with Sybase Central

Questions and answers regarding general SQL and backend databases

Entering images into iAnywhere with Sybase Central

Postby Robert Huber » Mon Jun 12, 2006 6:45 pm

Hello All

May be it's obvious, but I still didn't manage to put some images into the database with Sybase Central. How is it done? What files are supported (.tiff, .png. jpeg, ....)?

Thanks a lot for a hint.

Best regards, Robert
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Postby cybersack » Tue Jun 13, 2006 12:45 am

Hi Robert.

From your post, I can guess that either of 2 things are hppening:
1. your Servoy Form won't allow you to import the image types you want
2. your Sybase database won't accept them

#2 is definitely out of the question. It's just a BLOB or CLOB field.
#1 is probable because only JPG, GIF and PNG are supported with the Servoy Image Labels.

If #1 is your issue, then you could try our ImageBean plugin.
It currently supports Bitmap and we are right now implementing for TIF.
User avatar
cybersack
 
Posts: 302
Joined: Sun Jan 02, 2005 1:17 am

Postby Robert Huber » Thu Jun 15, 2006 10:12 am

Hi S (sorry, don't know your name)

Thanks for reply, obviously, I did not formulate very well as you have to guess about my question.

My question is just how to put some images, preferably as .png file, or, if not supported by Sybase, any other supported image format into a database field.
I have a field called icon and would like to put manually with Sybase Central (or Interactive SQL) an image into the field. I can interactively edit and create new records with Sybase Central, but did not find out how to fill an image field and what formats are supported.

Best regards, Robert


cybersack wrote:Hi Robert.

From your post, I can guess that either of 2 things are hppening:
1. your Servoy Form won't allow you to import the image types you want
2. your Sybase database won't accept them

#2 is definitely out of the question. It's just a BLOB or CLOB field.
#1 is probable because only JPG, GIF and PNG are supported with the Servoy Image Labels.

If #1 is your issue, then you could try our ImageBean plugin.
It currently supports Bitmap and we are right now implementing for TIF.
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Postby Westy » Thu Jun 15, 2006 2:37 pm

Robert Huber wrote:...My question is just how to put some images...into a database field...

If you want to put images in Sybase from within Servoy see:
http://forum.servoy.com/viewtopic.php?t=1005
Westy
 
Posts: 852
Joined: Fri Feb 13, 2004 5:27 am
Location: Lynnfield, Massachusetts USA

Postby Robert Huber » Thu Jun 15, 2006 3:26 pm

Hi Westy

I would like to put images interactively into the db from within Sybase Central, not from within Servoy.
Although I'm sure I have the below requirement at some point of development.

Best regards, Robert

Westy wrote:
Robert Huber wrote:...My question is just how to put some images...into a database field...

If you want to put images in Sybase from within Servoy see:
http://forum.servoy.com/viewtopic.php?t=1005
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Postby david_jonker » Thu Jul 27, 2006 3:04 pm

Hi Robert,

You can load images into the database using Sybase Central
if the image is stored on the same computer as the database.

Start Sybase Central. From within the "directory listing" in the
left-hand "Folder" pane, right-click on the table that will store the
images and select "View Data within Interactive SQL".

This will start the Interactive SQL utility. Within the
"SQL Statements" pane of Interactive SQL type:

INSERT INTO table1 ( column1 )
SELECT xp_read_file( 'c:\file_location\portrait.gif' )

This should work.

David
David Jonker
Sr. Product Manager
Sybase iAnywhere
david_jonker
 
Posts: 29
Joined: Wed Jul 26, 2006 3:29 pm


Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 2 guests