Stream.Open for a ImageResource

Hi All,

I need to open a Image in Stream. I was able to do it when the image is located in my c drive as well on the network but how do i refer to the same image when it is in database as imageResource or fileResource

'Statement works

'Call stream.Open( “c:\temp\al.gif”)

'Statement Works

'Call stream.Open( “\occ_lnserver\SBIfiles\al.gif”)

'Doesn’t work

Call stream.Open(“newoccdata1.nsf/al.gif”)

Call mime.SetContentFromBytes(stream, “image/gif”,ENC_NONE)

Call stream.Close

Anyhelp appreciated…

Thanks,

Durga

Subject: Stream.Open for a ImageResource

you can have the design elements show in a view. I can’t remeber the trick off hand (it has to do with the $Flags field), but this then gives you the possibility of accessing design elements as Notes documents, therefore passing them to the Stream.

Subject: RE: Stream.Open for a ImageResource

Yes, its called Fun with $FormulaClass.http://www.dominopower.com/issuesprint/issue199908/design.html

cheers!!

Ashish