On 03/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> BTW how to output image from script to web browser? I tried simplest way
> by
> using content type header for image and then printing out binary string,
> but
> it did not help.


Here's what I use (and this works):

data: read/binary %/some/image.jpg

print "Content-Type: image/jpg^/"
write-io system/ports/output data length? data

HY

Janeks
> On 2 Mar 2006 at 17:57, Tim Hendriks wrote:
> >>Thanks Boleslav, >>I can see now something that looks like an image, but
> it's distorted. It >works oke when I first save the data and then load it
> again. I think >something goes wrong with the line termination characters.
> Thanks so far. >>Tim >>Boleslav Brezovsky wrote: >>>Hi Tim, >>>>If your
> imageis string!, use following code: >>>>&#160;>>>>>>image: load to
> binary!
> image-in-string >>>>&#160;&#160;&#160;&#160;&#160;>>>>>>>>if your image is
> binary!, it's even easier: >>>>&#160;>>>>>>image: load image-in-binary
> >>>>&#160#160&#160;>>>>>>>>>>>>Regards, >>>>rebolek >>>>On 3/2/06, Tim
> Hendriks <[EMAIL PROTECTED]> wrote: >>&#160;>>>>>Hello List, >>>>>>I have a
> problem... >>>>>>Is it possible to convert binary data to an image?
> >>>>>>I
> use an external program (via call) to produce a image. I can capture=20
> >>>the image via call/output but then I am lost. >>>>>>Out is then a
> string!
> type like this: >>>>>>{GIF87a
> >>>[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
> >>>PROTECTED]@,[EMAIL PROTECTED]@[EMAIL PROTECTED]@
>
> >>>>>>[EMAIL PROTECTED]
> =89= >>>=A6=EA=CA=B6=EE^K=C7=F2L=D7=F6=8D=E7=FA=CE=F7=FE^O^L
> >>>=87=C4=A2=F1=88L*=97=CC=A6=F3^-=8DJ=A7=D4=AA=F5=8A=CDj=B7=DC=AE...
> >>>>>>Can I convert this to a REBOL image type so that I can display it
> with
> vi= >>>ew? >>>I tried converting it to-binary, but no succes...
> >>>>>>Thanks
> >>>>>>Tim >>>>>>-- >>>To unsubscribe from the list, just send an email to
> >>>lists at rebol.com with unsubscribe as the subject.
> >>>>>>>>>&#160;&#160;&#160;>>>>>>>>>-- >>/ >>Boleslav Brezovsky
> >>http://krutek.info >>\ >>>>&#160;>>>>-- >To unsubscribe from the list,
> justsend an email to >lists at rebol.com with unsubscribe as the subject.
> >>
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
>


--
Prætera censeo Carthaginem esse delendam

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to