Link to home
Start Free TrialLog in
Avatar of ahll
ahll

asked on

show an image stored in a database

Hi friends

I have an interbase 6 Ā database. One table has a blob field holding a picture and I need to show it.
The problem is that I don't know in wish format is stored this picture. I ran a routine to show a jpg picture and it failed, I got an JPEG ERROR #52.
How can I know the format of this picture and show it?

thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of Mohammed Nasman
Mohammed Nasman
Flag of Palestine, State of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ahll
ahll

ASKER

OK, I tried all this things and no results.
I saved the file to the HD and it doesn' t look like a jpg. I read the link posted by mnasman and it's very interesting but it didn't help me.
How I need this very much I'll increase my points on this question.

Thanks all
what is first two bytes of saved file (hex representation)?
Avatar of ahll

ASKER

all the files begin with diferents bytes, I saved some blob fields to the HD and they are all differents
Avatar of ahll

ASKER

please adm, can you delete this quiestion? I think nobody has an answer for my problem

thanks all anyway
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ahll

ASKER

Thanks Chris, but I have tha database full of data and I need to retrieve it.
Avatar of ahll

ASKER

I need to delete this quiestion, please

thanks