[Seaside] Smalltalk String and Character question
Bert Freudenberg
bert at impara.de
Sun Mar 20 13:27:33 CET 2005
Am 19.03.2005 um 23:01 schrieb Wolfgang Eder:
> Dmitry Dorofeev wrote:
>> Hi all,
>> just writting WAImage component for Seaside. Now at stage where i
>> need to detect image type.
>> For jpeg i have the following:
>> WAImage >> detectImageType: image
>> (image beginsWith: (String with: 16rFF asCharacter), (String with:
>> 16rD8 asCharacter)) ifTrue: [^ 'jpg'].
>
> (image beginsWith: (String with: 16rFF asCharacter with: 16rD8
> asCharacter))
#(16rFF 16rD8) asByteArray asString
- Bert -
More information about the Seaside
mailing list