Problem polega na tym ze gdy wyciagam blob'a w nastepujacy sposob:
<?php / $dbi = ibase_connect('127.0.0.1:Obrazki','******','*********','NONE'); $sql = "SELECT FIRST 1 * FROM PICTURES"; $sth = ibase_query($dbi,$sql); while ($row = ibase_fetch_object ($sth)) { ibase_blob_echo($row->PICTURE); }
Pojawia sie slynny obrazek z krzyzykiem (na droge ;])
wyeksportowalem sobie do pliku to co mi wyrzuca z bloba. Zaczyna sie tak
"WRZLY<Z<€yOyaJFIF ..." (jesli to ma jakies znaczenie moge reszte wrzucic)
Obrazki w bazie to jpeg YCbCr albo YCbCrK
Kiedy sobie przezucam rekordy ibWebAdmin tez nie moge ogladac obrazkow(efekt taki sam jak w php).
Co ciekawe SqlViewer - programik potrafi zczytac te obrazki ale chcialbym sie nauczyc robic to samemu zeby moc rozwijac ta baze .
Co robie zle , moze nie wiem czegos o blobach?/ Swoja droga szukalem na google jakis dobrych przykladow php i interbase i raczej srednio cos jest tyle co opisane funkcje, macie moze cos wiecej na ten temat?
tak sobie patrze na to co wyciagnalem i imagemagic mi pokazuje jak zmienie koncowke pliku na exif
Cytat
Image: image.exif
Format: EXIF (Exif digital camera binary data)
Class: DirectClass
Geometry: 1x1+0+0
Resolution: 72x72
Print size: 0.0138889x0.0138889
Units: Undefined
Type: Bilevel
Base type: Bilevel
Endianess: Undefined
Colorspace: RGB
Depth: 16/1-bit
Channel depth:
gray: 1-bit
Channel statistics:
gray:
min: 65535 (1)
max: 65535 (1)
mean: 65535 (1)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
Histogram:
1: (65535,65535,65535) #FFFFFFFFFFFF white
Rendering intent: Undefined
Interlace: None
Background color: white
Border color: rgb(223,223,223)
Matte color: grey74
Transparent color: black
Compose: Over
Page geometry: 1x1+0+0
Dispose: Undefined
Iterations: 0
Compression: Undefined
Orientation: Undefined
Properties:
date:create: 2009-12-08T17:35:26+01:00
date:modify: 2009-12-08T14:12:44+01:00
signature: ce8bee525d6736e9825261b19a9b51719f9dc4bb728e95cf7067a2142b03b362
Artifacts:
verbose: true
Tainted: False
Filesize: 14.9KB
Number pixels: 1b
Pixels per second: 10GB
User time: 0.000u
Elapsed time: 0:01.000
Format: EXIF (Exif digital camera binary data)
Class: DirectClass
Geometry: 1x1+0+0
Resolution: 72x72
Print size: 0.0138889x0.0138889
Units: Undefined
Type: Bilevel
Base type: Bilevel
Endianess: Undefined
Colorspace: RGB
Depth: 16/1-bit
Channel depth:
gray: 1-bit
Channel statistics:
gray:
min: 65535 (1)
max: 65535 (1)
mean: 65535 (1)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
Histogram:
1: (65535,65535,65535) #FFFFFFFFFFFF white
Rendering intent: Undefined
Interlace: None
Background color: white
Border color: rgb(223,223,223)
Matte color: grey74
Transparent color: black
Compose: Over
Page geometry: 1x1+0+0
Dispose: Undefined
Iterations: 0
Compression: Undefined
Orientation: Undefined
Properties:
date:create: 2009-12-08T17:35:26+01:00
date:modify: 2009-12-08T14:12:44+01:00
signature: ce8bee525d6736e9825261b19a9b51719f9dc4bb728e95cf7067a2142b03b362
Artifacts:
verbose: true
Tainted: False
Filesize: 14.9KB
Number pixels: 1b
Pixels per second: 10GB
User time: 0.000u
Elapsed time: 0:01.000
czyli tak jakbym wyciagnal nie obrazk tylko info o tym obrazku (jesli sie nie myle) <rece opadaja>