cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying streamed images in Web Dynpro

former_member186016
Active Contributor
0 Kudos

Hi All,

I have following scenario to programme.

- The DB have "images" stored as BLOB.

- I need to read the images (stream) and make them visible in Web Dynpro UI.

Problem is i only one way to providing images in Web Dynpro. The images are picked from url that points to Resource either at temporary location of permanent position Sap Images pool or contribution under mimes folder.

I see temporary location as one option here but still not able to figure out where to store it !

Can anybody help in this.

Thanks and Regards,

Ashwani Kr Sharma

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ashwani,

Please read <a href="/people/anilkumar.vippagunta2/blog/2007/02/20/reading-and-writing-images-from-sqlserver-in-webdynpro">Reading and Writing Images from SQLServer in WebDynpro</a> by <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=oyfrjwyishi%3d">anilkumar Vippagunta</a>

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

Use

WDWebResource.getPublicCachedWebResource(byte[] webResource,
                                                              WDWebResourceType resourceType,
                                                              WDScopeType scopeType,
                                                              WDDeployableObjectPart deployableObjectpart,
                                                              String key)

Regards

Bharathwaj

former_member186016
Active Contributor
0 Kudos

What has to passed for :

- WDWebResourceType resourceType

- WDScopeType scopeType

- String key

Regards,

Ashwani Kr Sharma

Former Member
0 Kudos

Hi Ashwani,

> - WDWebResourceType resourceType - WDWebResourceType.<one of the available types>

basically mime type of the file.. html or xls.. etc.,

> - WDScopeType scopeType - lifetime of the cached object.. WDScopeType.<choose from available scopes>

application or component etc

> - String key -

name of the resource

Regards

Bharathwaj

Former Member
0 Kudos

Please close the thread , if the problem is solved.

-Bharathwaj